JSFiddle - React, Tailwind, and code Playground
HTML
<div id="banner">
</div>
CSS
div#banner
{
background-color:#333;
width:1000px;
height:80px;
}
JavaScript
window.onresize = function(event) {
if(event.currentTarget.outerWidth >= 1026){
console.info("showing");
$("#banner").show();
}else{
console.info("hiding");
$("#banner").hide();
}
}