Languages / Knowledge library
ReScript
static types inference and javascript interoperability
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.
- Compile a typed function and inspect its JavaScript.
- Represent alternatives with a variant type.
- Write a binding for an existing JavaScript API.
- Build a component with explicit props.
- Test null or missing data at an external boundary.
Documentation and sources
- Official project documentation (rescript-lang.org)
Catalog research notes
- Research snapshot: September 9, 2026. This entry summarizes the linked primary documentation; it does not assert a latest release version.