Skip to content

Instantly share code, notes, and snippets.

@GuilhermeLis
Last active November 20, 2020 14:07
Show Gist options
  • Select an option

  • Save GuilhermeLis/d8a9af939d77fb5394bcb9aaba8eafdc to your computer and use it in GitHub Desktop.

Select an option

Save GuilhermeLis/d8a9af939d77fb5394bcb9aaba8eafdc to your computer and use it in GitHub Desktop.

Revisions

  1. Guilherme Lisboa renamed this gist Nov 20, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. Guilherme Lisboa created this gist Nov 20, 2020.
    20 changes: 20 additions & 0 deletions tsx
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    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>
    );
    }