index.js 353 B

123456789101112131415
  1. import React from "react";
  2. import ReactDOM from "react-dom";
  3. import {Provider} from "react-redux"
  4. import {createStore} from "redux";
  5. import reducer from "./reducers";
  6. import App from "./containers/App";
  7. const store = createStore(reducer);
  8. ReactDOM.render(
  9. <Provider store={store}>
  10. <App />
  11. </Provider>,
  12. document.getElementById("root")
  13. );