Let's use what we've learned so far as a foundation to build upon while creating an application with a navigation menu and client-side routing. On touch devices, users will be able to swipe to close the menu, and the menu will respond in real time to the user's touch. If the user swipes the menu when it's more than 50% closed and then releases, the menu will close; otherwise, it will remain open. The one exception is if the user swipes the menu closed with a high enough velocity; it will always close.
We will be working with this application throughout the rest of the book. To follow along, clone the GitHub repo and navigate to the directory representing the start of this chapter:
git clone https://github.com/PacktPublishing/ReasonML-Quick-Start-Guide.git
cd ReasonML-Quick-Start-Guide
cd Chapter03/app-start
npm install
Let's take a moment...