JSFiddle - React, Tailwind, and code Playground HTML <a href="javascript:void(0);" id="foo" >Drag me</a> CSS #foo:active { color:red; }