JSFiddle - React, Tailwind, and code Playground

by rpflorence

JavaScript

var fn = function(){
    alert('sweet');
};

var varVar = 'fn';
var instance = new window[varVar]();