reactjs get width of screen code example Example: react js get screen size console.log(window.innerHeight);