Note: for general Reason + BuckleScript editor setup, see here.
To easily try ReasonReact, we offer two solutions.
Our preferred option. If it's your first time trying ReasonReact, feel free to use the more familiar create-react-app option below, too.
npm install -g bs-platform bsb -init my-react-app -theme react cd my-react-app && npm install && npm start # in another tab npm run webpack
BuckleScript's bsb build system has an
init command that generates a project template. The
react theme offers a lightweight solution optimized for low learning overhead and ease of integration into an existing project.
It compiles to straightforward JS files, so you can open
index.html directly from the file system. No server needed.
Reason Scripts (Aka Create-React-App)
Reason-scripts provides a familiar experience to the ReactJS users who are already familiar with create-react-app. It's an all-encompassing solution. However, if it's too heavy for your taste, try the first option above (bsb).
reason-scripts comes with a server and hot-reloading built in.