JSFiddle - React, Tailwind, and code Playground

HTML

<input type='text' onkeyup="alert('It works!');" />