Sprinkle a bit of Reason into Create React App

  • So you’ve decided to hop on the hype train and you want to try it out in your app, the thing is you already have a big project using and don’t want to have to rewrite it from scratch or eject and have to manage everything yourself.
  • Enter reason-scripts, it’s the equivalent of react-scripts and it’s easy enough to move from one to the other, the great thing is that your JavaScript code and code are interoperable, so you can migrate your components one at a time, instead of doing a great big rewrite, awesome!
  • If you’re looking for an introduction to Reason, I would recommend starting with the docs.
  • For and , I would start with: – – A ReasonReact Tutorial by @jaredforsyth – – A First Reason React app for Javascript developers by @ur_friend_james – – This part is the easy part!
  • Start by moving from react-scripts to reason-scripts.

So you’ve decided to hop on the Reason hype train and you want to try it out in your app, the thing is you already have a big project using Create React App and don’t want to have to rewrite it from scratch or eject and have to manage everything yourself.

So you’ve decided to hop on the hype train and you want to try it out in your app, the thing is you already have a big project using and don’t want to have to rewrite it from scratch or eject and have to manage everything yourself.

Enter reason-scripts, it’s the equivalent of react-scripts and it’s easy enough to move from one to the other, the great thing is that your JavaScript code and code are interoperable, so you can migrate your components one at a time, instead of doing a great big rewrite, awesome!

This isn’t intended as an introduction to or to sell to you, it’s intended to show you how you can start using it within an existing project. If you’re looking for an introduction to Reason, I would recommend starting with the docs. For and , I would start with:

A ReasonReact Tutorial by @jaredforsyth

A First Reason React app for Javascript developers by @ur_friend_james

This part is the easy part!

Start by moving from react-scripts to reason-scripts.

Then you need to install bs-platform.

This part might take a bit more effort if you have added anything extra in your index.js, assuming you haven’t changed anything you can simply rename index.js to index.re and…

Sprinkle a bit of Reason into Create React App