cezarneaga
10/26/2017 - 10:10 AM

setup checklist for ReasonReact setup

setup checklist for ReasonReact

Check node and npm versions.

Ideally you should be on latest node v8.8 and npm 5.4.2.

If you use nvm make sure you are using the right version.

Initial setup

run npm install -g bs-platform

Editor setup

Use vscode

  • Install vscode-reasonml extension
  • Install reason-cli npm install -g https://github.com/reasonml/reason-cli/archive/beta-v-1.13.7-bin-darwin.tar.gz

ReasonReact setup

ideally use yarn

then run yarn create react-app my-app -- --scripts-version reason-scripts

if not, npm i -g create-react-app

and then run: create-react-app my-app -- --scripts-version reason-scripts