February 2019
Beginner to intermediate
180 pages
4h 4m
English
ReactJS components are not Reason components. To use an existing ReactJS component, we use [@bs.module] to import the node module, and then use the ReasonReact.wrapJsForReason helper function to convert the ReactJS component to a Reason component. There is also a ReasonReact.wrapReasonForJs helper function for using Reason in ReactJS.
Let's resume building our app from where we left off in Chapter 3, Creating ReasonReact Components:
git clone https://github.com/PacktPublishing/ReasonML-Quick-Start-Guide.gitcd ReasonML-Quick-Start-Guidecd Chapter03/app-endnpm install
Here, we'll add route transitions by binding to the existing React Transition Group components:
Read now
Unlock full access