You can search for identifiers within the package.
in-package search v0.2.0
html_of_jsx.lib
Jsx
module Attribute : sig ... end
type node = {
tag : string;
attributes : Attribute.t list;
children : element list;
}
and element =
| Null
| Text of string
| Fragment of element list
| Node of node
| Component of unit -> element
| List of element list
The type that represents a Jsx.element, it's a recursive type that allows to represent any HTML structure
val text : string -> element
Helper to represent an element as a string
val null : element
Helper to represent nullability in Jsx, useful to pattern match
val int : int -> element
Helper to render an integer (uses string_of_int)
val float : float -> element
Helper to render an integer (uses string_of_float)
val list : element list -> element
val fragment : element list -> element
Fragment
val node : string -> Attribute.t list -> element list -> element
The function to create a HTML DOM Node https://developer.mozilla.org/en-US/docs/Web/API/Node. Given the tag, list of attributes and list of childrens
https://developer.mozilla.org/en-US/docs/Web/API/Node