import{createStore,applyMiddleware}from'redux'import thunk from'redux-thunk'import counter from'./reducers.js'exportconst store =createStore(counter,applyMiddleware(thunk))
reducers.js
import{INCREMENT,DECREMENT}from'./action-types'import{combineReducers}from'redux'functioncounter(state=0,action){switch(action.type){caseINCREMENT:return state+action.data;caseDECREMENT:return state-action.data;default:return state
}}exportdefaultcombineReducers({counter})
index.jsxrequire('./app/lib/common.css');import React from 'react';import ReactDOM from 'react-dom';import ReduxApp from './reduxApp.js'import { store } from './redux/store.js'import { Provider...