You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
422 B
21 lines
422 B
8 years ago
|
// @flow
|
||
|
import React from 'react';
|
||
|
import { Provider } from 'react-redux';
|
||
|
import { ConnectedRouter } from 'react-router-redux';
|
||
|
import Routes from '../routes';
|
||
|
|
||
|
type RootType = {
|
||
|
store: {},
|
||
|
history: {}
|
||
|
};
|
||
|
|
||
|
export default function Root({ store, history }: RootType) {
|
||
|
return (
|
||
|
<Provider store={store}>
|
||
|
<ConnectedRouter history={history}>
|
||
|
<Routes />
|
||
|
</ConnectedRouter>
|
||
|
</Provider>
|
||
|
);
|
||
|
}
|