fluffster
A lightweight state container based on reactive streams.
NOTE: This repository is not maintained/developed in ES6 for the sake of its lightweight nature and compatibility. There will be attempts to converting the code to UMD compatible format in future, however.
Run an example:
npm run example
It Runs on http://localhost:3333.
Sample use :
var router = router /* ... Component imports ... */ routerdefaultErrorHandler = false; router; router; router; router; router; router;
usage with React
If you want to use it with React, please prepend the code with:
router;
It will allow fluffster to work with JSX-style rendering if needed. All appState props will then be availible in the JSX components in props
.
Additionally you'd have to provide additional mountpoint for each component, as Router IS NOT a component itself (therefore, its more flexible):
router;