https://dev.to/seif_ghezala/reasonml-for-production-react-apps-part-1-3nfk
> npm i
> npm i bs-platform
> npx bsb -init words-counter -theme react-hooks
> cd words-counter/
> npm i
> npm start
In a shell:
> npm run build
In a second shell:
> npm run webpack
In a third shell:
> npm run server
Open a firefox tab to localhost:8000
This generates the project with react-hooks template. This project becomes a Reason-React project
VS-Code reasonML is the official one.
Writing some text and storing the value in a variable.
To enable the CSS in webpack you need to
- install 2 packages: style-loader and css-loader
- add a rule in the module section of the webpack config