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.git
cd ReasonML-Quick-Start-Guide
cd Chapter03/app-end
npm install
Here, we'll add route transitions by binding to the existing React Transition Group components:
React Transition Group documentation can be found here:
https://reactcommunity.org/react-transition-group/
https://reactcommunity.org/react-transition-group/