Answered
In my React.js component, I'd like to conditionally render some elements depending on the screen height.
How do I get the current height of the user's screen? Is there a pure JavaScript solution?
window.innerHeight
This returns the height of the browser in pixels.