From a1da9d39b6736aec881287675227210c0c834d68 Mon Sep 17 00:00:00 2001 From: Kyle Shockey Date: Tue, 5 Dec 2017 17:00:07 -0800 Subject: [PATCH] Inject React as a system function --- src/core/system.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/core/system.js b/src/core/system.js index 23c0a9a1..e61f3841 100644 --- a/src/core/system.js +++ b/src/core/system.js @@ -1,3 +1,4 @@ +import React from "react" import { createStore, applyMiddleware, bindActionCreators, compose } from "redux" import Im, { fromJS, Map } from "immutable" import deepExtend from "deep-extend" @@ -97,7 +98,8 @@ export default class Store { getComponents: this.getComponents.bind(this), getState: this.getStore().getState, getConfigs: this._getConfigs.bind(this), - Im + Im, + React }, this.system.rootInjects || {}) } @@ -266,11 +268,7 @@ export default class Store { const actions = this.getActions() - console.log("wrapping actions!", actions) - const process = creator =>{ - console.log("processing", creator) - if( typeof( creator ) !== "function" ) { return objMap(creator, prop => process(prop)) }