Quick StartTryGuideAPICommunityBlogGitHub
Looking for the old (version 2) syntax? Click here

QuickstartSuggest an edit

npm install -g bs-platform
bsb -init my-first-app -theme basic-reason

Then, run it as usual:

cd my-first-app
npm run start

It runs in watch mode, so any changes to files will be picked up and compiled.

That's all! This compiles Reason to Javascript in the lib/js/ folder.

  • Read more about how we compile to JavaScript through our partner project, BuckleScript.

  • Alternatively, to start a ReasonReact app, try bsb -init my-react-app -theme react.

  • Head over to Editor Setup to get the Reason plugin for your favorite editor!