JSFiddle - React, Tailwind, and code Playground

HTML

<div id="image_container">
    
</div>

<div id="testThisText">
       See if you can grab this text with the javascript this var.
</div>

JavaScript

$(document).ready(function(){
    
    $('#testThisText').each(function(i,v){
         var thisText = $(this).text(); 
        console.log(thisText);
    });
   
})