Evento de entrada TypeScript
onChange = (e: React.ChangeEvent<HTMLInputElement>)=> {
const newValue = e.target.value;
}
Inexpensive Ibis
onChange = (e: React.ChangeEvent<HTMLInputElement>)=> {
const newValue = e.target.value;
}
onChange={(
ev: React.ChangeEvent<HTMLInputElement>,
): void => setInputValue(ev.target.value)}
const input = document.getElementById('input') as HTMLInputElement;
function getValue(){
let value = input.value;
}
// then you apply this function to a button element in the HTML doc
// <button onclick="getValue()">Get value</button>