I have a MUI TextField
input, that I want to do something when it changes, without preventing its native handling (without making it controlled input)
<TextField onChange={(e)=>{
something(e.target.value)
//maybe continueDefault() to make it still accept input
}}/>
How can I make it continue its default action, which is to allow it to receive and append text inputs after invoking my something()
function with the data?
I wanted to allow this without having to make the input a controlled input
, which is without using a state
to store its value.