JSFiddle - React, Tailwind, and code Playground

HTML

<p id="foo">Foo #1</p>
<p id="foo">Foo #2</p>

CSS

#foo { color:red; }

JavaScript

$(function(){

  alert($("#foo").length);

});