JSFiddle - React, Tailwind, and code Playground

JavaScript

var test2 = {
    state: void 0,
    doSomething: function() {
        return alert(this.state);
    }
};

var test3 = (function() {
  test2.state = "abc";
  test2.doSomething();
  return {};
})();