mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-26 11:33:54 +03:00
22 lines
437 B
JavaScript
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);
|