Build a React custom hook - useScreenResizing to detect current window, or mobile device size.

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

hey, thanks for the video, it is exactly what I need. But I have a question, when you change the window size, when cause the re-render? My understanding is as you are changing the windows size, the customized hook will be recalled that causes read the width/height data again, and render it on Administrator.js?

joedu
visit shbcf.ru