Last active
January 25, 2017 03:28
-
-
Save ryanjyost/ffff09aac80c80aaec2c1d8dd9efbbee to your computer and use it in GitHub Desktop.
Post-Redux: rainy-day-fund/src/index.js
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
| //src/index.js | |
| import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| import router from './router'; | |
| import 'bootstrap/dist/css/bootstrap.css'; | |
| import 'bootstrap/dist/css/bootstrap-theme.css'; | |
| import './index.css' | |
| import { createStore } from 'redux'; | |
| import { Provider } from 'react-redux'; | |
| import appReducer from './reducers'; | |
| let store = createStore(appReducer, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()); | |
| ReactDOM.render( | |
| <Provider store={store}>{router}</Provider>, | |
| document.getElementById('root') | |
| ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment