JSFiddle - React, Tailwind, and code Playground
HTML
<button onclick="animate('foo')">
Run
</button>
JavaScript
function animate(arg){
console.log(arg);
}
<button onclick="animate('foo')">
Run
</button>
function animate(arg){
console.log(arg);
}