-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
18 lines (16 loc) · 668 Bytes
/
App.js
File metadata and controls
18 lines (16 loc) · 668 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import React from 'react';
import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/integration/react';
import { store, persistor } from './src/redux/store/index';
import ToDoApp from './src/ToDoApp';
export default function App() {
return (
// PersistGate component delays the rendering of the app's UI until the persisted state is retrieved and saved to redux.
// Provider allows the state known as a store to pass through all components
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<ToDoApp />
</PersistGate>
</Provider>
);
}