February 2019
Beginner to intermediate
180 pages
4h 4m
English
ReasonReact comes with a built-in router found in the ReasonReact.Router module. It is quite unopinionated and therefore flexible. The public API has only four functions:
The watchUrl function starts watching the URL for changes. When changed, the url => unit callback is called. The unwatchUrl function stops watching the URL.
The push function sets the URL, and the dangerouslyGetInitialUrl function gets a record of type url. The dangerouslyGetInitialUrl function is meant to be used only within the didMount lifecycle hook, ...
Read now
Unlock full access