Custom Hook to get the window's width and height in React dynamically.
Jun 18, 2023 · 4 min read · Hey Everyone!, Today we are going to discuss how to get a window's width and height with a custom hook. This coding exercise was asked of me in one of my interviews. The interviewer asked me, Payal, create one custom hook (for reusing the code) to ge...
Join discussion



