JSFiddle - React, Tailwind, and code Playground

HTML

<div class='a'>
  <div class='b'>Test</div>
</div>

JavaScript

$(['.b']).each(function () {
  console.log($('.a').find(this).text()); // <-- Behaves incorrectly
});

$(['b']).each(function () {
  console.log($('.a').find('.' + this).text()); // <-- Behaves fine
});