Become a member
to unlock all features

    Add a Lifecycle Event with the useEffect Hook to a React Function Component


    React has provided the useEffect Hook to add side-effects to a Function Component. In this lesson, we'll add hooks to manage localStorage and listen to window keydown events. We’ll also unpack how to clean-up after these effects and also control how often they are executed.