redux-devtools/packages/redux-devtools-slider-monitor/examples/todomvc/containers/Root.dev.js
2020-08-09 09:46:22 -04:00

22 lines
437 B
JavaScript

import { hot } from 'react-hot-loader/root';
import React from 'react';
import PropTypes from 'prop-types';
import { Provider } from 'react-redux';
import TodoApp from './TodoApp';
import DevTools from './DevTools';
const Root = ({ store }) => (
<Provider store={store}>
<div>
<TodoApp />
<DevTools />
</div>
</Provider>
);
Root.propTypes = {
store: PropTypes.object.isRequired,
};
export default hot(Root);