package server-reason-react
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Rendering React components on the server natively
Install
dune-project
Dependency
Authors
Maintainers
Sources
server-reason-react-0.5.1.tbz
sha256=3972f64a3ec22b120b40137f74e7862629b2164e5bbf8b85489d4c7b8bc13288
sha512=24a52537c091c4b278ea5e468aa6786378f8b559ed2128e824b6f84f26c283856a30e7ef01aab6101087bd53b9bdc2ecd8152c00db10bccff67221b9c67318a0
doc/src/server-reason-react.js/Js_undefined.ml.html
Source file Js_undefined.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17type 'a t = 'a Js_internal.undefined let return a = Some a let empty = None external toOption : 'a t -> 'a option = "%identity" external fromOpt : 'a option -> 'a t = "%identity" (* Melange raises a JS Error with this exact message. *) let getExn f = match toOption f with None -> Js_exn.raiseError "Js.Undefined.getExn" | Some x -> x let getUnsafe a = match toOption a with None -> assert false | Some a -> a let map ~f x = match toOption x with None -> empty | Some x -> return (f x) let bind ~f x = match toOption x with None -> empty | Some x -> f x let iter ~f x = match toOption x with None -> () | Some x -> f x let testAny _ = Js_internal.notImplemented "Js.Undefined" "testAny" let fromOption = fromOpt let from_opt = fromOpt
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>