package vdom

  1. Overview
  2. Docs
type 'msg ctx
val container : _ ctx -> Js_browser.Element.t
val send_msg : 'msg ctx -> 'msg -> unit
val after_redraw : 'msg ctx -> (unit -> unit) -> unit
type 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.