Creating a Reusable Window Event Listener with useEffect and useCallback

added by JavaScript Kicks
3/7/2019 7:24:00 AM

421 Views

In this lesson we'll dive into issues with creating class components for reusable logic. Then we'll convert the logic to take advantage of hooks. We'll step through each pitfall that could be encountered and how to solve them. We'll end up with a perfect solution and understanding for how to combine multiple hooks like `useEffect` and `useCallback`.


0 comments