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/Hooks/index.html

Module React.HooksSource

Sourceval use_ref : 'value -> 'value ref
Sourceval use_ref_lazy : (unit -> 'value) -> 'value ref
Sourceval use_state : 'state -> 'state * (('state -> 'state) -> unit)
Sourceval use_state_lazy : (unit -> 'state) -> 'state * (('state -> 'state) -> unit)
Sourceval use_reducer : init:(unit -> 'state) -> ('state -> 'action -> 'state) -> 'state * ('action -> unit)
Sourceval use_effect : on:'deps -> ?equal:('deps -> 'deps -> bool) -> ?before_render:bool -> ?cleanup:(unit -> unit) -> (unit -> unit) -> unit
Sourceval use_effect_once : ?before_render:bool -> ?cleanup:(unit -> unit) -> (unit -> unit) -> unit
Sourceval use_effect_always : ?before_render:bool -> ?cleanup:(unit -> unit) -> (unit -> unit) -> unit
Sourceval use_resource : on:'deps -> ?equal:('deps -> 'deps -> bool) -> ?before_render:bool -> release:('resource -> unit) -> (unit -> 'resource) -> unit
Sourceval use_memo : on:'deps -> ?equal:('deps -> 'deps -> bool) -> (unit -> 'value) -> 'value
Sourceval use_context : 'value React__.Core.Context.t -> 'value
OCaml

Innovation. Community. Security.