Commit b13516ac by Kristian Freeman

Install and set up redux, react-redux, and redux-thunk

parent cf62998c
......@@ -7,7 +7,10 @@
},
"dependencies": {
"react": "^15.5.4",
"react-dom": "^15.5.4"
"react-dom": "^15.5.4",
"react-redux": "^5.0.5",
"redux": "^3.6.0",
"redux-thunk": "^2.2.0"
},
"scripts": {
"start": "react-scripts start",
......
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { applyMiddleware, createStore } from 'redux';
import thunk from 'redux-thunk';
import appState from './reducers';
import App from './App';
import './index.css';
const store = createStore(
appState,
applyMiddleware(thunk)
);
ReactDOM.render(
<App />,
<Provider store={store}>
<App />
</Provider>
,
document.getElementById('root')
);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment