mirror of
https://github.com/usatiuk/ustk-todolist.git
synced 2025-10-28 23:57:49 +01:00
git-subtree-dir: react git-subtree-mainline:53976e7b43git-subtree-split:e508ac031e
20 lines
543 B
JavaScript
20 lines
543 B
JavaScript
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
import thunk from 'redux-thunk';
|
|
import { Provider } from 'react-redux';
|
|
import { createStore, applyMiddleware } from 'redux';
|
|
import AppContainer from './containers/AppContainer';
|
|
import registerServiceWorker from './registerServiceWorker';
|
|
import todoApp from './reducers';
|
|
|
|
const store = createStore(todoApp, applyMiddleware(thunk));
|
|
|
|
ReactDOM.render(
|
|
<Provider store={store}>
|
|
<AppContainer />
|
|
</Provider>,
|
|
document.getElementById('root'),
|
|
);
|
|
|
|
registerServiceWorker();
|