polymorphic-react-component icon indicating copy to clipboard operation
polymorphic-react-component copied to clipboard

`onChange` error: Parameter 'event' implicitly has an 'any' type.

Open Aniket-IN opened this issue 2 years ago • 0 comments
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.

image

However, it works if I do like this: image

Aniket-IN avatar Jul 19 '23 06:07 Aniket-IN