JSFiddle - React, Tailwind, and code Playground
by JonVisc
HTML
<body>
</body>
JavaScript
function foo(a, b) {
b(function() {
return a+a;
});
}
// write a console.log that calls foo and outputs 8
$('body').html((foo(4, function(func) {return func;})));