0
34%
BSD-3-Clause
Callbag event streams for declaredom

bs-callbag-events

Latest release License

Callbag event streams for declaredom

Install

npm i --save @ristostevcev/bs-callbag-events

Usage

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)

Example

See example.html

License

See LICENSE