JSFiddle - React, Tailwind, and code Playground

by huuzoo

HTML

<label>
  <input type="text" id="inputForm" onkeyup="inputCheck()">
</label>
<div id="check">入力前</div>

CSS

#check {
  background-color: #eee;
}

JavaScript

function inputCheck() {
  var inputValue = document.getElementById( "inputForm" ).value;
  document.getElementById( "check" ).innerHTML = '入力中: ' + inputValue;
}