JSFiddle - React, Tailwind, and code Playground HTML <input onfocus="if (this.value === '') alert('Input is empty!');">