Syntax Lookup

Enter some language construct you want to know more about.
This is the external binding keyword.

external is used to bind ReScript code to external JS code, including bindings to global values, modules, functions and objects.

Example

ReScriptJS Output
@module("path")
external dirname: string => string = "dirname"

let root = dirname("/User/github")

References