Learn how to build a simple and performant React hook for tracking the window size using React hooks and requestAnimationFrame. Read More
Summary
This blog post explains how to build a React hook that tracks the window size using React hooks and requestAnimationFrame. It provides code examples and references to why requestAnimationFrame is better than debouncing functions. The post concludes with a link to a gist and repository for further reference.
React
Typescript
React hooks
window size
performance