mirror of
https://github.com/pavlobu/deskreen.git
synced 2025-05-20 01:10:27 -07:00
23 lines
524 B
TypeScript
23 lines
524 B
TypeScript
import React from 'react';
|
|
import { Provider } from 'react-redux';
|
|
import { ConnectedRouter } from 'connected-react-router';
|
|
import { hot } from 'react-hot-loader/root';
|
|
import { History } from 'history';
|
|
import { Store } from '../store';
|
|
import Routes from '../Routes';
|
|
|
|
type Props = {
|
|
store: Store;
|
|
history: History;
|
|
};
|
|
|
|
const Root = ({ store, history }: Props) => (
|
|
<Provider store={store}>
|
|
<ConnectedRouter history={history}>
|
|
<Routes />
|
|
</ConnectedRouter>
|
|
</Provider>
|
|
);
|
|
|
|
export default hot(Root);
|