Versioning follows the version redux.
Bundled with Redux is an example application called counter.
This is an isomorphic port of the counter app using Koa. It uses isomorphic-fectch to load the initial state on the server, and update the state from the client. Data retrieved and set via POST
s and GET
s to and from the API (src/server/api.js
).
git clone [email protected]:khtdr/redux-react-koa-isomorphic-counter-example.git
cd redux-react-koa-isomorphic-counter-example.git
npm install
- prod:
npm start
- dev:
npm run dev
- Open
http://localhost:3000
- Press the buttons a few times
- Reload page and inspect source to see the value in the HTML source
Based off the following ideas, code, examples: