-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathapp.tsx
35 lines (32 loc) · 873 Bytes
/
app.tsx
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
27
28
29
30
31
32
33
34
35
import * as React from 'react';
import { Provider } from 'react-redux';
import { Store } from 'redux';
import { ConnectedRouter } from 'react-router-redux';
import { Route } from 'react-router-dom';
import { History } from 'history';
import { ListView } from 'Components/list-view';
import { Counter } from 'Components/counter';
interface Props {
store: Store<any>;
history: History;
}
export class App extends React.Component<Props, {}> {
render() {
const { store, history } = this.props;
return (
<Provider store={store}>
<ConnectedRouter history={history}>
<Route
exact={true}
path="/"
render={() => (
<ListView title="List of counters" >
<Counter />
</ListView>
)}
/>
</ConnectedRouter>
</Provider>
);
}
}