Reason
  • Docs
  • Try
  • API
  • Community
  • Blog
  • Languages iconEnglish
    • 日本語
    • Deutsch
    • Español
    • Français
    • 한국어
    • Português (Brasil)
    • Русский
    • Українська
    • 中文
    • 繁體中文
    • Help Translate
  • GitHub

›JavaScript

Intro

  • What & Why
  • Getting started

Setup

  • Installation
  • Editor Plugins
  • Format (refmt)

Language Basics

  • Overview
  • Let Bindings
  • Primitives
  • Basic Structures
  • Types
  • Records
  • Variants
  • Options and nullability
  • Functions
  • Recursion
  • Destructuring
  • Pattern Matching
  • Mutable Bindings
  • Loops
  • Modules

Advanced Features

  • JSX
  • External
  • Exception
  • Object

JavaScript

  • Melange
  • Interop
  • Syntax Cheatsheet
  • Pipe First
  • Promise
  • Libraries
  • Converting from JS

Extra

  • Frequently Asked Questions
  • Extra Goodies
  • REPL (rtop)
Edit

Libraries

Reason libraries are just like OCaml libraries: hosted on opam. Here's a list of packages published by on the opam repository written in Reason: https://ocaml.org/p/reason/latest#used-by

Historically you can find some libraries on npm as well, since previously Reason and BuckleScript (now ReScript), but we're moving away from that. The npm packages are mostly outdated and might reference parts of Reason that aren't correct anymore. The main motiv is that we want to focus on the opam ecosystem, which is the standard for OCaml libraries, ppxs and tools.

← PromiseConverting from JS →