React window.innerWidth and window.innerHeight properties allow users to get height and width of window screen, In this tutorial, you will learn how to detect the dynamic window width and height on window resize using react useState and use effect hooks.