This repository has been archived on 2018-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
2017-04-05 16:15:35 -04:00
|
|
|
import React from 'react';
|
|
|
|
import { Provider } from 'react-redux';
|
|
|
|
import { Router } from 'react-router';
|
|
|
|
import routes from '../routes';
|
|
|
|
|
2017-04-05 16:53:24 -04:00
|
|
|
export default function Root({ store, history }) {
|
2017-04-06 15:23:47 -04:00
|
|
|
return (
|
|
|
|
<Provider store={store}>
|
|
|
|
<Router key={Math.random()} history={history} routes={routes} />
|
|
|
|
</Provider>
|
|
|
|
);
|
2017-04-05 16:15:35 -04:00
|
|
|
}
|