polymorphic-react-component
polymorphic-react-component copied to clipboard
`onChange` error: Parameter 'event' implicitly has an 'any' type.
trafficstars
Hi,
I was following your tutorial
Everything went perfectly, but I'm facing one slight problem.
When I try to pass as="input" and use onChange={(event) => ...}
It throws error: Parameter 'event' implicitly has an 'any' type.
I thought I was doing something wrong,
so I cloned this repo to test. (used the 04.tsx example)
But got the same result.
However, it works if I do like this: