action and reducer setup
This commit is contained in:
parent
246b131b87
commit
9eff420bea
|
@ -1,2 +1,3 @@
|
||||||
/node_modules
|
/node_modules
|
||||||
bundle.js
|
bundle.js
|
||||||
|
npm-debug.log
|
||||||
|
|
|
@ -4,9 +4,10 @@ import ReactDOM from 'react-dom';
|
||||||
import { createStore } from 'redux';
|
import { createStore } from 'redux';
|
||||||
|
|
||||||
import App from './components/app';
|
import App from './components/app';
|
||||||
|
import reducers from './reducers';
|
||||||
|
|
||||||
ReactDOM.render(
|
ReactDOM.render(
|
||||||
<Provider store={createStore(() => {})}>
|
<Provider store={createStore(reducers)}>
|
||||||
<App />
|
<App />
|
||||||
</Provider>
|
</Provider>
|
||||||
, document.getElementById('container'));
|
, document.getElementById('container'));
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
import { combineReducers } from 'redux'
|
||||||
|
|
||||||
|
const rootReducer = combineReducers({})
|
||||||
|
|
||||||
|
export default rootReducer
|
Loading…
Reference in New Issue