Cannot understand the error message for <select> onChange event

Hello,

I tried to use a useReducer with a select tag as per the code shown in this playground snippet.
I cannot seem to understand the error that the onChange event handler gives me. Any clues?

The error message looks something like:

The function applied to this argument has type
    (...)  => ReactDOM.Props.domProps
This argument cannot be applied with label ~onchange

onChange must be camelCased in React.

2 Likes

:sweat_smile: thanks a lot! I did really miss that.