JSFiddle - React, Tailwind, and code Playground JavaScript $(function() { console.log($('.foobar[data-foo-bar=]').length); });