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_exn.ml.html
Source file Js_exn.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37type t = { name : string; message : string option; stack : string option; fileName : string option } type exn += | Error of string | EvalError of string | RangeError of string | ReferenceError of string | SyntaxError of string | TypeError of string | UriError of string let make name message = { name; message = Some message; stack = None; fileName = None } let asJsExn (exn : exn) : t option = match exn with | Error message -> Some (make "Error" message) | EvalError message -> Some (make "EvalError" message) | RangeError message -> Some (make "RangeError" message) | ReferenceError message -> Some (make "ReferenceError" message) | SyntaxError message -> Some (make "SyntaxError" message) | TypeError message -> Some (make "TypeError" message) | UriError message -> Some (make "URIError" message) | _ -> None let stack (t : t) = t.stack let message (t : t) = t.message let name (t : t) = Some t.name let fileName (t : t) = t.fileName let anyToExnInternal _ = Js_internal.notImplemented "Js.Exn" "anyToExnInternal" let isCamlExceptionOrOpenVariant _ = Js_internal.notImplemented "Js.Exn" "isCamlExceptionOrOpenVariant" let raiseError str = raise (Error str) let raiseEvalError str = raise (EvalError str) let raiseRangeError str = raise (RangeError str) let raiseReferenceError str = raise (ReferenceError str) let raiseSyntaxError str = raise (SyntaxError str) let raiseTypeError str = raise (TypeError str) let raiseUriError str = raise (UriError str)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>