1 | import React from 'react'
|
2 | import { Provider } from 'react-redux'
|
3 | import Router from 'react-router/lib/Router'
|
4 |
|
5 | import { StyleMapContext } from './styles'
|
6 |
|
7 | class Root extends React.Component {
|
8 | componentDidCatch(err, info) {
|
9 | console.error('!! Error caught at Koot\'s Root component !!', err, info)
|
10 | }
|
11 | render() {
|
12 | return (
|
13 | <StyleMapContext.Provider value={{}}>
|
14 | <Provider store={this.props.store} >
|
15 | <Router history={this.props.history} {...this.props} >
|
16 | {this.props.routes}
|
17 | </Router>
|
18 | </Provider>
|
19 | </StyleMapContext.Provider>
|
20 | )
|
21 | }
|
22 | }
|
23 | export default Root
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|