1×
Become a member
to unlock all features
Autoplay

    Use the useReducer Hook and Dispatch Actions to Update State

    reactReact

    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.