JSFiddle - React, Tailwind, and code Playground
HTML
<div></div>
<div></div>
<p id='result'>
</p>
JavaScript
$('div').each(function(elem){
var state = (elem == this) ? 'True' : 'False';
var state1 = (elem == $(this)) ? 'True' : 'False';
$('#result').append('elem == this is ' + state + '<br>');
$('#result').append('elem == $(this) is ' + state1 + '<br>');
});