JSFiddle - React, Tailwind, and code Playground

HTML

<body>
	foo	
<script>
	$(window).resize(function() {

        console.log($(window).width())
        alert($(window).width())
       });
</script>