Created
November 26, 2021 11:33
-
-
Save codewithbernard/2432310839a323a3306f19d43d63c5ad to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Provider } from "react-redux"; | |
| import userReducer from "./reducers/userReducer"; | |
| // Creating instance of a store | |
| const store = createStore({ | |
| users: userReducer, | |
| }); | |
| const App = () => { | |
| // Setting the store instance | |
| return <Provider store={store}>...</Provider>; | |
| }; | |
| export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment