package ocaml-vdom

  1. Overview
  2. Docs
type 'msg ctx
val send_msg : 'msg ctx -> 'msg -> 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.