/App.js Secret
Created
April 22, 2022 08:01
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
//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