JSFiddle - React, Tailwind, and code Playground by dshilkret March 09, 2020 JavaScript var strValue = ""; if (strValue == "") { alert("empty string"); }