how to set dynamic size in react js code example Example: how to set dynamic size in react js window.innerWidth == 1440 ? 800 : 400