Last active
November 20, 2020 14:07
-
-
Save GuilhermeLis/d8a9af939d77fb5394bcb9aaba8eafdc to your computer and use it in GitHub Desktop.
src/Index.tsx from Redux with AsyncStorage
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 React from 'react'; | |
import { Provider } from 'react-redux'; | |
import { PersistGate } from 'redux-persist/integration/react'; | |
import { store, persistor } from './store'; | |
import Routes from './routes'; | |
import './config/ReactotronConfig'; | |
export default function Index() { | |
return ( | |
<Provider store={store}> | |
<PersistGate persistor={persistor}> | |
<Routes /> | |
</PersistGate> | |
</Provider> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment