type t
Represent the state of a form.
A state does not have any type parameter so that it's easier to embed in other data
structure (like Incr_dom.App_intf.Simple.Model.t
).
A state is used in conjunction with the form it was created from. If you use a state with any other form an exception will be thrown.
Raises an exception if any initial value for variants is not a part of the options
available in form
.
val error : t ‑> _ Id.t ‑> Core_kernel.Error.t option
Return the error attached to a given id, if any.