The question is, why when we type "1" in textarea console.log shows empty string, but actually textInput = "1"?
const [textInput, setTextInput] = useState('')
const inputAction= (e) => {
setTextInput(e.target.value);
console.log(textInput);
};
<textarea
value={textInput}
onChange={inputAction}
></textarea>