@ristostevcev/bs-callbag-events

0.2.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @ristostevcev/bs-callbag-events

Weekly Downloads

0

Version

0.2.0

License

BSD-3-Clause

Unpacked Size

237 kB

Total Files

8

Last publish

Collaborators

  • ristostevcev