package virtual_dom

  1. Overview
  2. Docs
val create_basic_hook : string -> ?hook:(Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t -> unit) -> ?unhook:(Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t -> unit) -> unit -> t
  • deprecated [since 2019-05] Do not use. This API is in beta and I _will_ break you.
val create_stateful_hook : string -> hook:(Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t -> 'a) -> unhook:('a -> Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t -> unit) -> id:'a Core_kernel.Type_equal.Id.t -> t
  • deprecated [since 2019-05] Do not use. This API is in beta and I _will_ break you.
val create_persistent_hook : string -> init:(Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t -> 'state) -> update:('state -> Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t -> 'state) -> destroy:('state -> Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t -> unit) -> id:'state Core_kernel.Type_equal.Id.t -> t
  • deprecated [since 2019-05] Do not use. This API is in beta and I _will_ break you.
OCaml

Innovation. Community. Security.