JSFiddle - React, Tailwind, and code Playground

HTML

<input type="number" onchange="teste(this.value)" value="1e4">

JavaScript

var teste = function(valor) {
  alert(valor);
}