JSFiddle - React, Tailwind, and code Playground

by Ian Hazzard

HTML

<button onclick='myFunction()'>Click me to do nothing</button>

JavaScript

function myFunction(){
 alert("This didn\'t work until you changed the extension from \"onLoad\" to something else.");  
}