Bucklescript bindings for mithril stream library.
mithril-stream can be used with modern state management solutions like Meiosis to great effect. No need for Virtual DOMs or other "complex machinery" at this point in time ;)
To help write bucklescript bindings for this lib (and hence make it usable from ReasonML) see the FFI cheatsheet and go for it!
npm i bs-mithril-stream
Add bs-mithril-stream
to dependencies
in bsconfig.json
- To force the stream to end, use
Stream.end(~force: true)
open MithrilStream;
let number = stream(5);
let fn = strm => strm;
let combined = combine(fn, [32]);
npm run build
npm run watch
If you use vscode
, Press Windows + Shift + B
it will build automatically