JSFiddle - React, Tailwind, and code Playground

by WK_of_Angmar

HTML

<div id="hello"></div>

JavaScript

//This will write the id of the first DIV element into the box on the right.
//You can change the id of the DIV element above to test around.
document.write(document.getElementsByTagName("div")[0].id);