forked from gondolio/coursera-full-stack-react-react-native
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathApp.js
More file actions
23 lines (21 loc) · 614 Bytes
/
Copy pathApp.js
File metadata and controls
23 lines (21 loc) · 614 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import React from 'react';
import Main from './components/MainComponent';
import { Provider } from 'react-redux';
import { ConfigureStore } from './redux/configureStore';
import { PersistGate } from 'redux-persist/es/integration/react';
import Loading from './components/LoadingComponent';
const { persistor, store } = ConfigureStore();
export default class App extends React.Component {
render() {
return (
<Provider store={store}>
<PersistGate
loading={<Loading />}
persistor={persistor}
>
<Main />
</PersistGate>
</Provider>
);
}
}