project: https://gitee.com/xiaobin80/starter
application
app.js
include createStore
import { createStore } from 'redux'
Establish reducer
const reducerName = (state, action) => {
state;
}
invoke createStore()
const store = createStore(reducerName);
html
public/index.html
<!DOCTYPE html>
<html>
<head>
<title>The Complete Redux Book - Example Application</title>
</head>
<body>
<div id="app">
Redux is running: <span id="counter"></span>
</div>
<script type="text/javascript" src="../app.js"></script>
</body>
</html>