JSFiddle - React, Tailwind, and code Playground
HTML
<button>btn</button>
JavaScript
window.one = function() {
alert('one called');
}
jQuery("button").bind("click", function() {
var funcName = "one";
window[funcName]();
//alert('here');
});