JSFiddle - React, Tailwind, and code Playground

HTML

<div id="outer">
    <div id="test">First</div>
    <div id="test">Second</div>
</div>

JavaScript

// Note how the find(...) function returns multiple results (with jQuery 1.7.2).
$('#outer').find('#test').css('border', '10px solid red')
    
// But when using $(...) only the first match is returned.
$('#test').css('background', 'green')