@user19685697 I think your question is spot on. You are talking about this right?
//here the function call is not a callback function like:
// onChange={(e)=>updateName(e)}
import React, {useState} from 'react';
function MyComponent(){
const [name, setName] = useState("Robin Hood");
const updateName = e => setName(e.target.value); //here there is a parameter
return(
<>
<input value={name} onChange={updateName}/>
<p>Name: {name}</p>
</>
);
}
export default MyComponent