package vdom

  1. Overview
  2. Docs

Module Vdom_blit.CmdSource

Sourcetype 'msg ctx
Sourceval container : _ ctx -> Js_browser.Element.t
Sourceval send_msg : 'msg ctx -> 'msg -> unit
Sourceval after_redraw : 'msg ctx -> (unit -> unit) -> unit
Sourcetype handler = {
  1. f : 'msg. 'msg ctx -> 'msg Vdom.Cmd.t -> bool;
}

A command handler recognizes some commands and reacts on them, typically by spawing asynchronous tasks than can notify their outcome with send_msg.

OCaml

Innovation. Community. Security.