UNPKG

presale-demo-pe

Version:

This project was bootstrapped with [Create React App](https://github.com/facebookincubator/create-react-app).

30 lines (25 loc) 640 B
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux' import { createStore, combineReducers, applyMiddleware } from 'redux'; import thunk from 'redux-thunk' import balanceMiddleware from './middlewares/balance'; import timeMiddleware from './middlewares/time'; import * as reducers from './ducks'; import App from './components/App'; const store = createStore( combineReducers({ ...reducers }), applyMiddleware( thunk, balanceMiddleware, timeMiddleware ) ); ReactDOM.render( <Provider store={store}> <App /> </Provider>, document.getElementById('root') );