I want to pass an additional argument to onChange (event handler) of an <input> tag, apart from the event object. How do I do that?
Suppose, I have such a function
const f = (event, i) => { //stuff }
Can I do this? (I know it doesn't work)
<input onChange=f(1) />
Assuming, the event object gets passed in as the first argument automatically?
Note - I am using functional components