package eliom
 sectionYPositions = computeSectionYPositions($el), 10)"
  x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
  >
  
  
  Advanced client/server Web and mobile framework
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
  
    
      10.4.1.tar.gz
    
    
        
    
  
  
  
    
  
  
    
  
        md5=218bcb5cd275cc05be06574c5fa357fa
    
    
  sha512=edbf8b084ec1b7439d4715199c22eb925a77a2dcfbe76bb5bbc4b9d076b70be1b0de74f9eab9dfb7854df28d65eb31a4c17380528d4a461d9c2a4222abe804cc
    
    
  doc/eliom.server/Eliom_shared/React/S/index.html
Module React.SSource
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.tcreate ?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)"
  >