blob: 522b746fec25e357b74a123d62bdee2f478b3a82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
import React from 'react';
import PropTypes from 'prop-types';
import { Provider } from 'react-redux';
import { Router } from 'react-router-dom';
import AppRouter from './AppRouter';
export default class App extends React.Component {
static propTypes = {
store: PropTypes.object.isRequired,
history: PropTypes.object.isRequired,
}
render() {
const { store, history } = this.props;
return (
<Provider store={store}>
<Router history={history}>
<AppRouter />
</Router>
</Provider>
);
}
}
|