mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-11 20:27:07 +03:00
20 lines
383 B
JavaScript
20 lines
383 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';
|
|
|
|
const Root = ({ store }) => (
|
|
<Provider store={store}>
|
|
<div>
|
|
<TodoApp />
|
|
</div>
|
|
</Provider>
|
|
);
|
|
|
|
Root.propTypes = {
|
|
store: PropTypes.object.isRequired,
|
|
};
|
|
|
|
export default hot(Root);
|