DEV Community


Discussion on: `useWindowSize` React Hook To Handle Responsiveness In JavaScript

3sanket3 profile image
Sanket Patel Author

First time heard about the matchMedia. Thanks for the input.

Just wondering, is there any way to react if screen resized?

stfbauer profile image
Stefan Bauer

Of course, it has an event receiver for onChange.

Thread Thread
3sanket3 profile image