package jsoo-react
Module React.HooksSource
Source
val use_reducer :
init:(unit -> 'state) ->
('state -> 'action -> 'state) ->
'state * ('action -> unit)Source
val use_effect :
on:'deps ->
?equal:('deps -> 'deps -> bool) ->
?before_render:bool ->
?cleanup:(unit -> unit) ->
(unit -> unit) ->
unitSource
val use_effect_once :
?before_render:bool ->
?cleanup:(unit -> unit) ->
(unit -> unit) ->
unitSource
val use_effect_always :
?before_render:bool ->
?cleanup:(unit -> unit) ->
(unit -> unit) ->
unitSource
val use_resource :
on:'deps ->
?equal:('deps -> 'deps -> bool) ->
?before_render:bool ->
release:('resource -> unit) ->
(unit -> 'resource) ->
unit