1.
Introduction
2.
Language Elements
2.1.
let Binding & Mutation
2.2.
Type
2.3.
Primitive Types
2.3.1.
Unit
2.3.2.
String
2.3.3.
Char
2.3.4.
Boolean
2.3.5.
Integer
2.3.6.
Float
2.3.7.
Regular Expression
2.3.8.
Conversion
2.4.
if else
2.5.
Loops
2.6.
Function
2.6.1.
Optional Arguments(Rescript)
2.6.2.
Optional Arguments(OCaml)
2.6.3.
Function Cheatsheet
2.7.
Array
2.8.
List
2.9.
Tuple
2.10.
Record
2.11.
Object
2.12.
Variant
2.12.1.
Example(blang)
2.13.
Polymorphic Variant
2.14.
Extensible Variant
2.15.
Exception
2.15.1.
JS Exception
2.16.
Option, Null, Undefined
2.17.
Pipe
2.18.
Lazy
2.19.
Patterns
2.20.
Module
2.20.1.
Module Type
2.20.2.
Functor
2.20.3.
First-class Module
2.21.
Decorator
3.
Binding
3.1.
Global JS Values
3.2.
Import from/Export to JS
3.2.1.
Bind to default or named export
3.2.2.
Bind to default or named exported JS Class
3.3.
Bind to JS Object
3.3.1.
Bind using Rescript record
3.3.2.
Bind JS array to Rescript record
3.3.3.
Bind using Rescript object
3.3.4.
Bind with getter/setter
3.4.
Bind to JS Function
3.4.1.
Labeled Arguments
3.4.2.
Object Method
3.4.3.
Variadic Function
3.4.4.
Polymorphic Variant (@unwrrap)
3.4.5.
Constrain Arguments
3.4.6.
Special-case: Event Listeners
3.4.7.
Fixed Arguments
3.4.8.
Ignore Arguments
3.4.9.
Curry and Uncurry
3.4.10.
Modeling this-based callbacks
3.4.11.
Bind null or undefined return value to Option
3.5.
JSON
4.
Generate Converters & Helpers
4.1.
@deriving(accessors)
4.2.
@deriving(jsConverter)
4.3.
@deriving({jsConverter: newType})
4.4.
@obj
4.5.
@deriving(abstract)
5.
ReScriptReact (V3)
5.1.
Basic Elements
5.2.
Component
5.2.1.
Low level APIs to create components
5.2.2.
Misc
5.3.
Arrays and Keys
5.4.
Refs and the DOM
5.4.1.
Manage a list of Refs using a ref callback
5.4.2.
Forwarding Refs
5.5.
Context
5.6.
Styling
6.
Resources
Light (default)
Rust
Coal
Navy
Ayu
Rescriptocampus
Primitive Types
Rescript
unit
bool
int
float
string
char
JavaScript
undefined
null
boolean
number
bigint
string
symbol
OCaml
unit
bool
int
float
string
char