Skip to content

Instantly share code, notes, and snippets.

@GuilhermeLis
Last active November 20, 2020 14:07
Show Gist options
  • Save GuilhermeLis/d8a9af939d77fb5394bcb9aaba8eafdc to your computer and use it in GitHub Desktop.
Save GuilhermeLis/d8a9af939d77fb5394bcb9aaba8eafdc to your computer and use it in GitHub Desktop.
src/Index.tsx from Redux with AsyncStorage
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