package server-reason-react

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

server-reason-react-0.4.0.tbz
sha256=7811cd16a7256edbebd06057072142fc2fa1d81de784442e21f3225f06f08ce2
sha512=d60084b34f4086bc401f5f1e209714ab297b5dd94b9b55050816ba9dd0579b2c88745b1813ab57d9584c826af9602df279e8ecfdc04cde62f94d1fec9506dd45

doc/server-reason-react.js/Js/module-type-Dictionary/index.html

Module type Js.DictionarySource

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