package eliom
- Overview
- No Docs
You can search for identifiers within the package.
in-package search v0.2.0
Advanced Client/server Web and mobile framework
Install
dune-project
Dependency
Authors
Maintainers
Sources
10.2.0.tar.gz
md5=089b68d5bac8dfae1116923f6d95b39c
sha512=b4828b57d963d217ca0efd871b1c0b3f8816c7971825eb49d0dc06dbd91004fc659f83f9121d849ab8de47560941d07b2b9c1838b3387e7c1a4d3d6b9058936b
doc/eliom.server/Eliom_shared/React/S/index.html
Module React.S
Source
Source
val create :
?default:
('a React.S.t * (?step:React.step -> 'a -> unit)) option
Eliom_client_value.t ->
?reset_default:bool ->
?eq:('a -> 'a -> bool) Value.t ->
'a ->
'a t * (?step:React.step -> 'a -> unit) Value.t
create ?default ?reset_default x
produces a pair s, f
, where s
is a (shared) reactive signal, and f
is a shared function for updating the signal.
The initial value of the signal is x
, unless default
is provided. default
, if provided, is used as the client-side signal. reset_default
, if set to true (default: false), resets the value of default
to x
.
The behavior of f
is undefined on the server side. On the client side, f
behaves just like the standard React-provided update functions.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>