copernicium
A unidirectional frontend framework, based on github.com/Raynos/mercury, with the following features:
- Observable app state
- Reactive rendering using a virtual DOM
- Event dispatching via channels
Used correctly, you can implement an app with a unidirectional loop:
initial state ---> render view ---> dispatch events
^ |
| |
+--- update state <--+
Usage
Here's a minimal app that contains an on/off button that you can toggle by pressing it:
var cn = ; ;
Example Apps
To try the any of the examples (including the minimal app above) in the examples/
directory:
$ npm run example <dirname>
To get a listing of available examples:
$ npm run example