rdx-example

This is a simple example app to demonstrate "rdx" which aims to be "like Redux, but smaller" and with a much simpler API to reduce the amount of boilerplate code required.

home blog todos article 1 article 2 counter unknown

The entire app is just 3.1 kb minified and gzipped*, but includes:

* Safari currently requires an extra 590 byte polyfill for EventTarget support

Usage

Each of the nav links above loads a separate view, using the router. The 'todos' link loads some remote JSON data with logic to prevent re-loading if already fetched (including when going between the list & detail views in either direction). Data is persisted to localStorage so the data and counter state is saved between page refreshes - clear that out to see the data re-load.

Source-code

The source-code for the app is available at github.com/CaptainCodeman/rdx-example together with links to the state store used.