Skip to content

Instantly share code, notes, and snippets.

@leehyeonj

leehyeonj/App.js Secret

Created April 22, 2022 08:01
//App.js
import React from 'react';
..생략
import { PersistGate } from 'redux-persist/integration/react';
export const {store, persistor} = configureStore();
const App = () => (
<Provider store={store}>
<ConnectedRouter history={history}>
<PersistGate loading={null} persistor={persistor}>
..
<Switch>
<Routes />
</Switch>
..
</PersistGate>
</ConnectedRouter>
</Provider>
);
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment