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.1.tbz
sha256=b97fbe6a7c3e5e1a7775e0f6498f257acaaa7e272177a9a3e0e50b7a49408d7c
sha512=b27a94618c367c80efef83a41c2a59c9cc7848fd753049ed40fa1f2cface1ef34cf3a995835bf08e2eb59c3186911f429b4706ed07dcb9724df6af5eb012a31d

doc/server-reason-react.js/Js/Dict/index.html

Module Js.DictSource

Sourcetype 'a t
Sourcetype key = string

Key type

Sourceval get : 'a t -> key -> 'a option

get dict key returns None if the key is not found in the dictionary, Some value otherwise

Sourceval unsafeGet : 'a t -> key -> 'a
Sourceval set : 'a t -> key -> 'a -> unit

set dict key value sets the key/value in dict

Sourceval keys : 'a t -> string array

keys dict returns all the keys in the dictionary dict

Sourceval empty : unit -> 'a t

empty () returns an empty dictionary

Sourceval unsafeDeleteKey : string t -> string -> unit

Experimental internal function

Sourceval entries : 'a t -> (key * 'a) array

entries dict returns the key value pairs in dict

Sourceval values : 'a t -> 'a array

values dict returns the values in dict

Sourceval fromList : (key * 'a) list -> 'a t

fromList entries creates a new dictionary containing each (key, value) pair in entries

Sourceval fromArray : (key * 'a) array -> 'a t

fromArray entries creates a new dictionary containing each (key, value) pair in entries

Sourceval map : f:('a -> 'b) -> 'a t -> 'b t

map f dict maps dict to a new dictionary with the same keys, using f to map each value

OCaml

Innovation. Community. Security.