diff options
Diffstat (limited to 'public/projects/react-small-apps/apps/todos/src/index.js')
| -rw-r--r-- | public/projects/react-small-apps/apps/todos/src/index.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/public/projects/react-small-apps/apps/todos/src/index.js b/public/projects/react-small-apps/apps/todos/src/index.js new file mode 100644 index 0000000..1c0aabf --- /dev/null +++ b/public/projects/react-small-apps/apps/todos/src/index.js @@ -0,0 +1,17 @@ +import React from "react"; +import ReactDOM from "react-dom"; +import { Provider } from "react-redux"; +import { BrowserRouter } from "react-router-dom"; +import App from "./App"; +import store from "./store"; + +ReactDOM.render( + <React.StrictMode> + <Provider store={store}> + <BrowserRouter basename={process.env.PUBLIC_URL}> + <App /> + </BrowserRouter> + </Provider> + </React.StrictMode>, + document.getElementById("app") +); |
