JSFiddle - React, Tailwind, and code Playground JavaScript if ($(window).width() > 768) { alert('menor'); } else { alert('maior'); }