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