diff --git a/src/index.js b/src/index.js index d563c0f..51e7592 100644 --- a/src/index.js +++ b/src/index.js @@ -1,17 +1,15 @@ -import React from 'react'; -import ReactDOM from 'react-dom/client'; -import './index.css'; -import App from './App'; -import reportWebVitals from './reportWebVitals'; +import React from "react"; +import ReactDOM from "react-dom/client"; +import "./index.css"; +import App from "./App"; +import { store } from "./store"; +import { Provider } from "react-redux"; -const root = ReactDOM.createRoot(document.getElementById('root')); +const root = ReactDOM.createRoot(document.getElementById("root")); root.render( - + + + ); - -// If you want to start measuring performance in your app, pass a function -// to log results (for example: reportWebVitals(console.log)) -// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals -reportWebVitals(); diff --git a/src/store.js b/src/store.js new file mode 100644 index 0000000..d3a3e50 --- /dev/null +++ b/src/store.js @@ -0,0 +1,5 @@ +import { configureStore } from "@reduxjs/toolkit"; + +export const store = configureStore({ + reducer: {}, +});