mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-12-02 14:33:52 +03:00
27 lines
614 B
TypeScript
27 lines
614 B
TypeScript
|
import { hot } from 'react-hot-loader/root';
|
||
|
import React, { FunctionComponent } from 'react';
|
||
|
import PropTypes from 'prop-types';
|
||
|
import { Provider } from 'react-redux';
|
||
|
import TodoApp from './TodoApp';
|
||
|
import { Store } from 'redux';
|
||
|
import { TodoState } from '../reducers';
|
||
|
import { TodoAction } from '../actions/TodoActions';
|
||
|
|
||
|
interface Props {
|
||
|
store: Store<TodoState, TodoAction>;
|
||
|
}
|
||
|
|
||
|
const Root: FunctionComponent<Props> = ({ store }) => (
|
||
|
<Provider store={store}>
|
||
|
<div>
|
||
|
<TodoApp />
|
||
|
</div>
|
||
|
</Provider>
|
||
|
);
|
||
|
|
||
|
Root.propTypes = {
|
||
|
store: PropTypes.any.isRequired,
|
||
|
};
|
||
|
|
||
|
export default hot(Root);
|