JSFiddle - React, Tailwind, and code Playground

HTML

<button onclick="animate('foo')">
Run
</button>

JavaScript

function animate(arg){
	console.log(arg);
}