JSFiddle - React, Tailwind, and code Playground

by Jussia

HTML

<input type="text" value="Hello" onchange="changeInput(this.value)">

JavaScript

function changeInput(val) {
	console.log(val)
}