Reason (programming language)

Reason
ParadigmsMulti-paradigm: functional, imperative, modular, object-oriented
FamilyML: Caml: OCaml
Designed byJordan Walke
First appearedMay 16, 2016 (2016-05-16)
Stable release
3.16.0  / April 5, 2025 (April 5, 2025)
LicenseMIT
Filename extensions.re, .rei
Websitereasonml.github.io
Influenced by
OCaml, JavaScript

Reason, also known as ReasonML, is a general-purpose, high-level, multi-paradigm, functional and object-oriented programming language and syntax extension and toolchain for OCaml created by Jordan Walke, who also created the React framework, at Facebook. Reason uses many syntax elements from JavaScript, compiles to native code using OCaml's compiler toolchain, and can compile to JavaScript using the ReScript compiler.

The Reason community officially provides ReasonReact as a solution for React-based web applications.