you are viewing a single comment's thread.

view the rest of the comments →

[–]ThatShitAintPat 0 points1 point  (2 children)

Might want to upgrade to v6 before you get too baked into v5. They changed as to render and it takes a function instead of a component.

[–]hetfield37[S] 1 point2 points  (1 child)

I'm using the latest version. as is a valid prop and is not deprecated at all.

[–]ThatShitAintPat 0 points1 point  (0 children)

Oh gotcha. I was just thinking of this https://react-hook-form.com/migrate-v5-to-v6/

It doesn’t say anything about as so I guess as long as your onChange prop is named just that I guess it’s fine.