Callbag event streams for declaredom
npm i --save @ristostevcev/bs-callbag-events
This library provides callbag event streams from declaredom elements for a declarative approach to event-driven code:
open Html
open CallbagEvents
open CallbagForEach
let my_button = button [|text "Click me"|]
let _ =
click my_button
|> for_each (fun e -> Js.log e)
See example.html
See LICENSE