diff --git a/README.md b/README.md index aeeb431..be1c187 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/). For a steady stream of TILs from a variety of rocketeers, checkout [til.hashrocket.com](https://til.hashrocket.com/). -_614 TILs and counting..._ +_615 TILs and counting..._ --- @@ -443,6 +443,7 @@ _614 TILs and counting..._ - [Exhaustive Pattern Matching Of List Variants](reason/exhaustive-pattern-matching-of-list-variants.md) - [Multi-Argument Functions As Syntactic Sugar](reason/multi-argument-functions-as-syntactic-sugar.md) - [Pattern Match On Exceptions](reason/pattern-match-on-exceptions.md) +- [Quickly Bootstrap A React App Using Reason](reason/quickly-bootstrap-a-react-app-using-reason.md) - [String Interpolation With Integers And Sprintf](reason/string-interpolation-with-integers-and-sprintf.md) ### Ruby diff --git a/reason/quickly-bootstrap-a-react-app-using-reason.md b/reason/quickly-bootstrap-a-react-app-using-reason.md new file mode 100644 index 0000000..2bfbce2 --- /dev/null +++ b/reason/quickly-bootstrap-a-react-app-using-reason.md @@ -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.