Use the useReducer Hook and Dispatch Actions to Update State

InstructorElijah Manor

Share this video with your friends

Send Tweet

As an alternate to useState, you could also use the useReducer hook that provides state and a dispatch method for triggering actions. In this lesson, we’ll centralize logic that is spread across a web application and centralize it using the useReducer hook.