Using <div /> elements for TableBody component produces TypeScript errors #644
Labels
enhancement
New feature or request
hacktoberfest
This issue is suitable for the hacktoberfest ;)
PR welcome
You can give that a try :)
Describe the bug
When using a custom TableBody component, we need to forward a
ref
to it. However, react-virtuoso types expect thisref
to point to atbody
element, so when I try to use adiv
element instead, I get a TypeScript error.Reproduction
Expected behavior
It would be nice if we could use the non-
tbody
elements forTableBody
component without resorting to usingas any
.The text was updated successfully, but these errors were encountered: