how to change react component size based on screen code example Example: react js get screen size console.log(window.innerHeight);