doc: add StateProvider, reducer, and initialState to entry file

This commit is contained in:
Leon Xu committed 2022-05-05 21:27:38 -07:00
1 parent 775c4fb5b1
commit 47d41ab683
1 file changed
+5 -1
+5 -1
View File
@@ -2,10 +2,14 @@ import React from "react";
import ReactDOM from "react-dom"; import ReactDOM from "react-dom";
import "./index.css"; import "./index.css";
import App from "./App"; import App from "./App";
import { StateProvider } from "./redux/StateProvider";
import reducer, { initialState } from "./redux/reducer";
ReactDOM.render( ReactDOM.render(
<React.StrictMode> <React.StrictMode>
<App /> <StateProvider initialState={initialState} reducer={reducer}>
<App />
</StateProvider>
</React.StrictMode>, </React.StrictMode>,
document.getElementById("root") document.getElementById("root")
); );