package virtual_dom

  1. Overview
  2. Docs
OCaml bindings for the virtual-dom library

Install

Dune Dependency

Authors

Maintainers

Sources

v0.17.0.tar.gz
sha256=812711b4d5ce634a413580cd7096482de8d71abec9ae37bb01f7c0dcec2968ec

doc/virtual_dom.ui_effect/Ui_effect/For_testing/Svar/index.html

Module For_testing.SvarSource

You can think of an Svar.t as like an Ivar.t whose purpose is to allow us to implement of_svar below.

(The difference between Svar and Ivar is that the former is synchronous. That is, when fill_if_empty is called, it will directly call all of the handlers rather than scheduling that they be called later. This semantics can be confusing to work with in large-scale programs, as it means the control flow of your application hops around a lot more. However, it does mean that you don't need a scheduler, so it's easier to implement.)

Sourcetype 'a t
Sourceval create : Base.unit -> 'a t
Sourceval upon : 'a t -> ('a -> Base.unit) -> Base.unit
Sourceval fill_if_empty : 'a t -> 'a -> Base.unit
Sourceval peek : 'a t -> 'a Base.option
OCaml

Innovation. Community. Security.