1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 15:18:01 +00:00

Add Quickly Bootstrap A React App Using Reason as a reasonml til

This commit is contained in:
jbranchaud
2018-02-13 14:38:11 -06:00
parent f739ad02b6
commit 00d4c460ae
2 changed files with 28 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
# Quickly Bootstrap A React App Using Reason
The ReasonML language and ecosystem is great for developing React apps. As
you might expect from the React community, there is a set of `reason-scripts`
for a ReasonML/React project which works similarly to the standard
[`create-react-app`](https://github.com/facebook/create-react-app) scripts.
First, you need to install the [BuckleScript
platform](https://github.com/BuckleScript/bucklescript) and this must be
done using `npm`.
```bash
$ npm install -g bs-platform
```
From there, it is a matter of using the [`yarn
create`](https://yarnpkg.com/lang/en/docs/cli/create/) command to generate a
React app that uses the aforementioned
[`reason-scripts`](https://yarnpkg.com/lang/en/docs/cli/create/).
```
$ yarn create react-app my-reason-react-app --scripts-version reason-scripts
```
Next steps from here are documented in the `README.md` and should be
familiar to anyone who has used `create-react-app` in the past.