JSFiddle - React, Tailwind, and code Playground

by ChrisStanyon

HTML

<form>
  <input type="password" name="pass" value="mySecret">
  <button
    type="button"
    onmousedown="this.form.pass.type='text';return false;"
    onmouseup="this.form.pass.type='password';return false;">
      Show Password
  </button>
</form>