Reason React Simple Starter
Welcome Reason React Simple Starter! It's a project created to help you start your journey with React using ReasonML (duh). It uses
You can read more about it here: https://reasonml.github.io/docs/en/what-and-why.html
This starter project is meant to solve the most common problems when creating a new Reason project:
- It comes with a predefined configuration which is ready to use
- It doesn't create tons of temporary JS files when compiling
npm. This project was tested on
node 8 and
npm 5 but any newer should be just fine!
Download the repository and run
npm install. This will install all dependencies and set everything up. You're ready to go!
npm start. This command starts
webpack-dev-server which in turn:
- Compiles all Reason files thanks to
webpackin a watch mode
- Runs a server at http://localhost:8081/
Effectively, whenever you make any changes in Reason sources, they get automatically compiled to JS —
webpack picks the new files and bundles into a single file
/bundledOutputs dir. This file is ready to be used in the browser (see
npm run build.
For faster and smaller bundle try running
npm run prod.