JSFiddle - React, Tailwind, and code Playground

by khamer

HTML

<main>
  <input type="password" v-model="pass">
  <div class="password" v-if="pass" v-text="`Your password is '${pass}'.`"></div>
  
  <div class="log"></div>
</main>

JavaScript

$(function() {
	$(window).keypress(function(evt) {
  	$('.log').append(`You typed the ${evt.key}.<br>`);
  });
})