Creating a Reusable Window Event Listener Hook with useEffect and useCallback

added by JavaScript Kicks
3/6/2019 7:40:24 PM

335 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