18 lines
383 B
JavaScript
18 lines
383 B
JavaScript
|
import React from 'react';
|
||
|
import { Provider } from 'react-redux';
|
||
|
import { Router } from 'react-router';
|
||
|
import routes from '../routes';
|
||
|
|
||
|
type RootType = {
|
||
|
store: {},
|
||
|
history: {}
|
||
|
};
|
||
|
|
||
|
export default function Root({ store, history }: RootType) {
|
||
|
return (
|
||
|
<Provider store={store}>
|
||
|
<Router key={Math.random()} history={history} routes={routes} />
|
||
|
</Provider>
|
||
|
);
|
||
|
}
|