import React, { PropTypes } from 'react'; import thunk from 'redux-thunk'; import { render } from 'react-dom'; import { applyMiddleware, createStore } from 'redux'; import { Provider, connect } from 'react-redux'; // Action function actionIncrement() { return { type: 'INCREMENT', count: 1 }; } function actionIncrementAsync() { return dispatch => { setTimeout(() => { dispatch(actionIncrement()); },