Summary
In this chapter, we saw how ReasonReact is a simpler, safer way to build React components. Having Reason's type system enforcing correct component usage at compile time is a huge win. Also, it makes refactoring safer, cheaper, and a much more pleasant experience. ReasonReact is just Reason, much like how ReactJS is just JavaScript. All of what we've done so far is just Reason and ReasonReact without any third-party libraries such as Redux or React Router.
As we'll see in Chapter 4, BuckleScript, Belt, and Interoperability, we also have the option to use existing JavaScript (and ReactJS) solutions within Reason. After getting more comfortable with BuckleScript, the Belt standard library, and JavaScript interoperability, we'll add route ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access