Warning: Reason support is experimental. We are looking for beta-tester and contributors.

Module Eliom_content.Html.R

module R : sig..end

Creation of HTML5 content from React signals. HTML5's trees are automatically updated whenever corresponding signals change.


Content creation

See Html_sigs.T , If you want to create an untyped form, you will have to use Eliom_content.Html.D.Raw otherwise, use the form module. For more information, see the manual .

val node : 
  'a Eliom_content.Html.elt React.signal Eliom_client_value.t ->
  'a Eliom_content.Html.elt

Function node s create an HTML5 elt from a signal s. The resulting HTML5 elt can then be used like any other HTML5 elt

val filter_attrib : 
  'a Eliom_content.Html.attrib ->
  bool React.signal -> 'a Eliom_content.Html.attrib

filter_attrib att on returns an attrib that behave like att when on is true and behave like if there was no attribute when on is false

module Raw : 
  Html_sigs.Make(Eliom_content_core.Xml_wed)(Svg.R.Raw).T
with type +'a elt = 'a elt
and type +'a attrib = 'a attrib

Cf.

include Eliom_content.Html.R.Raw