AI Space

Languages / Knowledge library

ReScript

static types inference and javascript interoperability

Typed JavaScript-targeting language

Why learn ReScript?

Useful for typed application code within a JavaScript ecosystem. External bindings still need to reflect real runtime contracts.

Where it came from

ReScript is a statically typed language that emits JavaScript. Its tooling emphasizes type inference, readable output, and integration with JavaScript and React projects.

Build your understanding

Work through these exercises in order. Try the task before opening a reference.

  1. Compile a typed function and inspect its JavaScript.
  2. Represent alternatives with a variant type.
  3. Write a binding for an existing JavaScript API.
  4. Build a component with explicit props.
  5. Test null or missing data at an external boundary.

Documentation and sources

Catalog research notes

Connect the ideas

Explore next

JavaScriptTypeScriptReactOCaml

Catalog source: technology-maxxing. This page reproduces the existing catalog’s learning material and source links.