Created
October 13, 2016 23:59
-
-
Save talkol/203e99cf4aa583c41cf66001274a38ab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| import { createStore, applyMiddleware, combineReducers } from 'redux'; | |
| import { Provider } from 'react-redux'; | |
| import thunk from 'redux-thunk'; | |
| import App from './App'; | |
| import './index.css'; | |
| import * as reducers from './store/reducers'; | |
| const store = createStore(combineReducers(reducers), applyMiddleware(thunk)); | |
| ReactDOM.render( | |
| <Provider store={store}> | |
| <App /> | |
| </Provider>, | |
| document.getElementById('root') | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment