Designing for various windows sizes can be challenging. One way to get around this is by using JavaScript.

<script>
alert(window.outerWidth+’ x ‘+window.outerHeight);
</script>

Same can be done in React.js applications.

class Main extends React.Component {
constructor(props) {
super(props);
this.state = { windowWidth: window.innerWidth }…