JSFiddle - React, Tailwind, and code Playground

by ChrisStanyon

HTML

<form>
<input type="password" name="pass">
<button type="button"
    onmousedown="this.form.pass.type='text'"
    onmouseup="this.form.pass.type='password'">
</button>
</form>