Dyad
Store app state as key-value pairs.
Update state using a reactive (state, action) => state
pattern.
Listen for changes to a key; get notified if-and-only-if it changes (never when another key changes).
Installation
npm install dyad
Usage
const Dyad = const store = Dyad // Set initial `counter` state.store // Register listener for changes to `counter`.store // Register reducers.store // Dispatch actions.storestorestorestorestore // Logs `1` exactly once.