package jsoo-react

  1. Overview
  2. Docs
Bindings to ReactJS for js_of_ocaml, including JSX ppx

Install

Dune Dependency

Authors

Maintainers

Sources

0.1.tar.gz
sha256=93d5751c01016f5aa018b80259df0c65ac12f25152cef1dbcff024ddfc1f07b5
md5=240fd3b58cb002ff7eaa6ddddb7eba87

doc/jsoo-react.lib/React/index.html

Module ReactSource

Sourcetype element = private Ojs.t

A React element

Sourceval element_of_js : Ojs.t -> element

Conversion function for gen_js_api

Sourceval element_to_js : element -> Ojs.t

Conversion function for gen_js_api

Sourceval null : element

A React element that will render the null value

Sourceval string : string -> element
Sourceval int : int -> element
Sourceval float : float -> element
Sourcetype 'a option_undefined = 'a option
Sourcetype 'a js_nullable = 'a Js_of_ocaml.Js.Opt.t
Sourceval js_nullable_of_js : (Ojs.t -> 'value) -> Ojs.t -> 'value js_nullable
Sourceval js_nullable_to_js : ('value -> Ojs.t) -> 'value js_nullable -> Ojs.t
Sourcetype ('props, 'return) componentLike = 'props -> 'return
Sourcetype 'props component = ('props, element) componentLike
Sourceval component_of_js : 'a -> 'a
Sourceval component_to_js : 'a -> 'a
Sourcetype ('input, 'output) callback = 'input -> 'output
Sourceval create_element : 'props component -> 'props -> element
Sourceval create_element_variadic : 'props component -> 'props -> element list -> element
Sourceval clone_element : element -> 'props -> element
Sourceval use_effect_always : ?before_render:bool -> (unit -> (unit -> unit) option_undefined) -> unit
Sourceval use_effect_once : ?before_render:bool -> (unit -> (unit -> unit) option_undefined) -> unit
Sourceval use_effect1 : ?before_render:bool -> (unit -> (unit -> unit) option_undefined) -> 'a -> unit
Sourceval use_effect2 : ?before_render:bool -> (unit -> (unit -> unit) option_undefined) -> ('a * 'b) -> unit
Sourceval use_effect3 : ?before_render:bool -> (unit -> (unit -> unit) option_undefined) -> ('a * 'b * 'c) -> unit
Sourceval use_effect4 : ?before_render:bool -> (unit -> (unit -> unit) option_undefined) -> ('a * 'b * 'c * 'd) -> unit
Sourceval use_effect5 : ?before_render:bool -> (unit -> (unit -> unit) option_undefined) -> ('a * 'b * 'c * 'd * 'e) -> unit
Sourceval use_effect6 : ?before_render:bool -> (unit -> (unit -> unit) option_undefined) -> ('a * 'b * 'c * 'd * 'e * 'f) -> unit
Sourceval use_effect7 : ?before_render:bool -> (unit -> (unit -> unit) option_undefined) -> ('a * 'b * 'c * 'd * 'e * 'f * 'g) -> unit
Sourceval use_callback1 : ('input, 'output) callback -> 'a -> ('input, 'output) callback
Sourceval use_callback2 : ('input, 'output) callback -> ('a * 'b) -> ('input, 'output) callback
Sourceval use_callback3 : ('input, 'output) callback -> ('a * 'b * 'c) -> ('input, 'output) callback
Sourceval use_callback4 : ('input, 'output) callback -> ('a * 'b * 'c * 'd) -> ('input, 'output) callback
Sourceval use_callback5 : ('input, 'output) callback -> ('a * 'b * 'c * 'd * 'e) -> ('input, 'output) callback
Sourceval use_callback6 : ('input, 'output) callback -> ('a * 'b * 'c * 'd * 'e * 'f) -> ('input, 'output) callback
Sourceval use_callback7 : ('input, 'output) callback -> ('a * 'b * 'c * 'd * 'e * 'f * 'g) -> ('input, 'output) callback
Sourceval use_memo1 : (unit -> 'value) -> 'a -> 'value
Sourceval use_memo2 : (unit -> 'value) -> ('a * 'b) -> 'value
Sourceval use_memo3 : (unit -> 'value) -> ('a * 'b * 'c) -> 'value
Sourceval use_memo4 : (unit -> 'value) -> ('a * 'b * 'c * 'd) -> 'value
Sourceval use_memo5 : (unit -> 'value) -> ('a * 'b * 'c * 'd * 'e) -> 'value
Sourceval use_memo6 : (unit -> 'value) -> ('a * 'b * 'c * 'd * 'e * 'f) -> 'value
Sourceval use_memo7 : (unit -> 'value) -> ('a * 'b * 'c * 'd * 'e * 'f * 'g) -> 'value
Sourceval use_state : (unit -> 'state) -> 'state * (('state -> 'state) -> unit)
Sourceval use_reducer : init:(unit -> 'state) -> ('state -> 'action -> 'state) -> 'state * ('action -> unit)
Sourcemodule Ref : sig ... end
Sourceval use_ref : 'value -> 'value Ref.t
Sourcemodule Context : sig ... end
Sourceval use_context : 'value Context.t -> 'value
Sourcemodule Children : sig ... end
Sourcemodule Fragment : sig ... end
Sourcemodule StrictMode : sig ... end
Sourceval memo : ?compare:('props -> 'props -> bool) -> 'props component -> 'props component
Sourceval set_display_name : 'props component -> string -> unit
Sourcemodule Hooks : sig ... end
Sourcemodule Dom : sig ... end
Sourcemodule Event : sig ... end
Sourcemodule Router : sig ... end
OCaml

Innovation. Community. Security.