Skip to content
Chris edited this page Mar 24, 2016 · 2 revisions

Counter App

This is a short write up of a Demo application. This application will have two routes:

  • /: The main route to increase and decrease a counter
  • /stats: View how often the decrease/increase button has been clicked

Setup

Create a fresh project:

mkdir counter-demo && cd counter-demo
yo react-webpack-redux

Further we will need two actions, one for increasing the counter, and one for decreasing it, so lets add them:

yo react-webpack-redux:action increase

Clone this wiki locally