JSFiddle - React, Tailwind, and code Playground

by Nemesis02

HTML

<div id="test"></div>

JavaScript

var Obj = function(id) {
  return document.getElementById(id);
};

var x = new Obj("test"); //Success
alert(x.type); //Successfully alert "div"
x.innerHTML = "TEST"; //This does not update the actual div html on the page!!!