JSFiddle - React, Tailwind, and code Playground

by Ariel Balter

HTML

<input type="text" onkeypress="alert(this.value)">
<input type="text" onkeypress="handleInput(this.value)">

JavaScript

function handleInput(value){
    alert(value);
}