A simple clone of Redux with a basic counter app to demonstrate functionality.
> yarn
Start the tests with:
> yarn test --watch
Read through the dedux test cases for implemented logic in src/dedux
.
Read through the counter test cases for implemented logic in src/counter
.
From the root of the project run
> yarn serve
The counter example will launch automatically in your default browser, but if it doesn't navigate to http://localhost:8080
in your address bar. Observe the following:
- Dedux is hooked up to the elements in
counter.html
- The counter reflects the value stored in your Dedux state
- Clicking the up button increases the counter (pressing the up arrow will have the same effect)
- Clicking the down button decreases the counter (pressing the down arrow will have the same effect)
- Clicking the reset button sets the counter to zero (pressing the escape key will have the same effect)
- Bonus: The counter value will persist between reloads thanks to a localstorage middleware