package server-reason-react

  1. Overview
  2. Docs
Rendering React components on the server natively

Install

Dune Dependency

Authors

Maintainers

Sources

server-reason-react-0.3.0.tbz
sha256=2a6fc7197d251dc91babcf22cb6987e1d07e91ae631cc62a893df2c6da6b49b5
sha512=c6ed6eb39b046b698844e561cf9a42a866e4df632a6e495a6473ba629ecd9ee534db0b5b42737776d9a4b15376bea1380b77749228c88a0fc0f6b10ead4b3a01

doc/src/server-reason-react.dom/Dom_storage.ml.html

Source file Dom_storage.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
type t

external getItem : string -> string option = "getItem"
[@@mel.send.pipe: t] [@@mel.return null_to_opt]

external setItem : string -> string -> unit = "setItem" [@@mel.send.pipe: t]
external removeItem : string -> unit = "removeItem" [@@mel.send.pipe: t]
external clear : unit = "clear" [@@mel.send.pipe: t]

external key : int -> string option = "key"
[@@mel.send.pipe: t] [@@mel.return null_to_opt]

external length : t -> int = "length" [@@mel.get]
(* external localStorage : t = "localStorage" *)
(* external sessionStorage : t = "sessionStorage" *)
OCaml

Innovation. Community. Security.