summaryrefslogtreecommitdiff
path: root/src/app.js
blob: 956f66c9586c854128a9149c28a7b334f8b61b20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/lib/integration/react';

import Launcher from './components/launcher';
import { persist, store } from './store';
import AppRoutes from './router';

class App extends Component {
  render() {
    return (
      <Provider store={ store }>
        <PersistGate loading={ <Launcher/> } persistor={ persist }>
          <AppRoutes/>
        </PersistGate>
      </Provider>
    );
  }
}

export default App;