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_nullable.ml.html
Source file Js_nullable.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14type 'a t = 'a Js_internal.nullable external toOption : 'a t -> 'a Js_internal.nullable = "%identity" external to_opt : 'a t -> 'a Js_internal.nullable = "%identity" let return : 'a -> 'a t = fun x -> Some x let isNullable : 'a t -> bool = function None -> true | Some _ -> false let null : 'a t = None let undefined : 'a t = None let map ~f x = match to_opt x with None -> (None : 'b t) | Some x -> return (f x) let bind ~f x = match to_opt x with None -> (None : 'b t) | Some x -> f x let iter ~f x = match to_opt x with None -> () | Some x -> f x let fromOption : 'a Js_internal.nullable -> 'a t = function None -> undefined | Some x -> return x let from_opt = fromOption
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>