Use ReasonMLs Variant & Record types with ReasonReact's useReducer hook to Manage State

InstructorThomas Greco

Share this video with your friends

Send Tweet

Any React developer will agree that 2019 was the year of that hooks took the library by storm. Luckily for us, the ReasonRect library makes it possible to hooks within the context of a ReasonML application.

In this lesson we will take a test drive of the useReducer hook within a ReasonML application. By the end, we'll have learned how to define our actions using variants, use records to shape our state, and more!

Resources