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.4.1.tbz
sha256=2d27cb4656208dde8d5eb0c452c590186d092618ac0a04f1ab0a095a3ca58498
sha512=26e16daf87f6b80eff86ccf7df29153527b24e3f4dbc7f13820d1507b0a2e7d6db40fd774bcaad6e6cccff0bf19d4a411b95a10a071f9ce92d52bf07eb08f75f
doc/src/server-reason-react.js/Js_re.ml.html
Source file Js_re.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 37 38 39 40 41 42 43 44 45 46 47(** Provide bindings to Js regex expression *) (* The RegExp object *) type t = Quickjs.RegExp.t (* The result of a executing a RegExp on a string. *) type result = Quickjs.RegExp.result (* Maps with nullable since Melange does too: https://melange.re/v3.0.0/api/re/melange/Js/Re/index.html#val-captures *) let captures : result -> string Js_internal.nullable array = fun result -> Quickjs.RegExp.captures result |> Stdlib.Array.map (fun x -> Some x) let index : result -> int = Quickjs.RegExp.index let input : result -> string = Quickjs.RegExp.input let source : t -> string = Quickjs.RegExp.source let fromString : string -> t = fun str -> match Quickjs.RegExp.compile str ~flags:"" with | Ok regex -> regex | Error err -> raise (Invalid_argument (Quickjs.RegExp.compile_error_to_string err)) let fromStringWithFlags : string -> flags:string -> t = fun str ~flags -> match Quickjs.RegExp.compile str ~flags with | Ok regex -> regex | Error err -> raise (Invalid_argument (Quickjs.RegExp.compile_error_to_string err)) let flags : t -> string = fun regexp -> Quickjs.RegExp.flags regexp let global : t -> bool = fun regexp -> Quickjs.RegExp.global regexp let ignoreCase : t -> bool = fun regexp -> Quickjs.RegExp.ignorecase regexp let multiline : t -> bool = fun regexp -> Quickjs.RegExp.multiline regexp let sticky : t -> bool = fun regexp -> Quickjs.RegExp.sticky regexp let unicode : t -> bool = fun regexp -> Quickjs.RegExp.unicode regexp let dotAll : t -> bool = fun regexp -> Quickjs.RegExp.dotall regexp let lastIndex : t -> int = fun regex -> Quickjs.RegExp.last_index regex let setLastIndex : t -> int -> unit = fun regex index -> Quickjs.RegExp.set_last_index regex index let exec : str:string -> t -> result option = fun ~str rex -> match Quickjs.RegExp.exec rex str with result -> Some result | exception _ -> None let test_ : t -> string -> bool = fun regexp str -> Quickjs.RegExp.test regexp str let test : str:string -> t -> bool = fun ~str regex -> test_ regex str (* Named capture groups *) let groups : result -> (string * string) list = Quickjs.RegExp.groups let group : string -> result -> string option = Quickjs.RegExp.group
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>