Skip to content

Instantly share code, notes, and snippets.

@codewithbernard
Created November 26, 2021 11:33
Show Gist options
  • Select an option

  • Save codewithbernard/2432310839a323a3306f19d43d63c5ad to your computer and use it in GitHub Desktop.

Select an option

Save codewithbernard/2432310839a323a3306f19d43d63c5ad to your computer and use it in GitHub Desktop.
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