score:3

Accepted answer
const handleinputvalue = (e: react.changeeventhandler<htmlinputelement>) => {
    setinputvalue(e.target.value);
};

the type changeeventhandler is for the entire function, not just the event that's passed into it. so you either need to do this:

const handleinputvalue: react.changeeventhandler<htmlinputelement> = (e) => {
  setinputvalue(e.target.value);
};

or this:

const handleinputvalue = (e: react.changeevent<htmlinputelement>) => {
    setinputvalue(e.target.value);
};

Related Query

More Query from same tag