index.js 388 B

12345678910111213141516171819
  1. import React from "react";
  2. import ReactDOM from "react-dom";
  3. import { Provider } from "react-redux";
  4. import { BrowserRouter } from "react-router-dom";
  5. import Router from "./router";
  6. import "./style/index.scss";
  7. import state from "./store";
  8. ReactDOM.render(
  9. <Provider store={state}>
  10. <BrowserRouter>
  11. <Router />
  12. </BrowserRouter>
  13. </Provider>,
  14. document.getElementById("root")
  15. );