JSFiddle - React, Tailwind, and code Playground

by ibike365

JavaScript

var _Steps = {steps: [{step: 1, title: "Welcome", load: "blah"}]};

function blah(x){
    alert(x);
}

$.each(_Steps.steps, function(index, step) {
    var myFn = window[step.load];
    myFn('hi');
});