package server-reason-react

  1. Overview
  2. Docs
Rendering React components on the server natively

Install

dune-project
 Dependency

Authors

Maintainers

Sources

server-reason-react-0.5.1.tbz
sha256=3972f64a3ec22b120b40137f74e7862629b2164e5bbf8b85489d4c7b8bc13288
sha512=24a52537c091c4b278ea5e468aa6786378f8b559ed2128e824b6f84f26c283856a30e7ef01aab6101087bd53b9bdc2ecd8152c00db10bccff67221b9c67318a0

doc/server-reason-react.html/Html/index.html

Module HtmlSource

Sourceval is_self_closing_tag : string -> bool
Sourceval escape : Buffer.t -> string -> unit
Sourcetype attribute = [
  1. | `Present of string
  2. | `Value of string * string
  3. | `Omitted
]
Sourcetype attribute_list = attribute list
Sourceval attribute : 'a -> 'b -> [> `Value of 'a * 'b ]
Sourceval present : 'a -> [> `Present of 'a ]
Sourceval omitted : unit -> [> `Omitted ]
Sourceval write_attribute : Buffer.t -> attribute -> unit
Sourcetype element =
  1. | Null
  2. | String of string
  3. | Raw of string
  4. | Node of node
  5. | Int of int
  6. | Float of float
  7. | List of string * element list
  8. | Array of element array
Sourceand node = {
  1. tag : string;
  2. attributes : attribute_list;
  3. children : element list;
}
Sourceval string : string -> element
Sourceval raw : string -> element
Sourceval null : element
Sourceval int : int -> element
Sourceval float : float -> element
Sourceval list : ?separator:??? -> element list -> element
Sourceval array : element array -> element
Sourceval fragment : (string * element list) -> element
Sourceval node : string -> attribute_list -> element list -> element
Sourceval to_string : ?add_separator_between_text_nodes:??? -> element -> string
Sourceval pp : element -> string
Sourceval add_attribute_escaped : Buffer.t -> string -> unit
Sourceval escape_attribute_value : string -> string
Sourceval escape_for_inline_script : string -> string
Sourceval escape_entire_inline_script : string -> string