JSFiddle - React, Tailwind, and code Playground
by rwaldron
HTML
<a href="#">
test
</a>
<div>
<span>
abcde
</span>
</div>
JavaScript
// expect, actual
console.log( 1, $('a').length);
// in this case, the reporter had assumed that given the context, the +div should be found
console.log( 1, $('+div', $('a')).length );
console.log( 1, $('a+div').length );