mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-15 06:07:30 +03:00
19 lines
453 B
JavaScript
19 lines
453 B
JavaScript
import React, { Component } from 'react';
|
|
import TodoApp from './TodoApp';
|
|
import { createStore, combineReducers } from 'redux';
|
|
import { Provider } from 'react-redux';
|
|
import * as reducers from '../reducers';
|
|
|
|
const reducer = combineReducers(reducers);
|
|
const store = createStore(reducer);
|
|
|
|
export default class App extends Component {
|
|
render() {
|
|
return (
|
|
<Provider store={store}>
|
|
{() => <TodoApp /> }
|
|
</Provider>
|
|
);
|
|
}
|
|
}
|