[v7] Upgrading from React 17 to React 18 - how to use strings as Cells?
Hi all, I'm currently in the process of upgrading a project from React 17 to React 18 and I'm running into an issue where previously, I was able to render
This is for react-table 7 by the way. In React 17 this was allowed, yet in React 18 I'm getting an error:
When I look at the typings for
Where
I know I can wrap my cell in an empty fragment, but feels like the wrong solution. Are there any other options?
TIA!
strings as Cells for my column definitions. E.g. This is for react-table 7 by the way. In React 17 this was allowed, yet in React 18 I'm getting an error:
When I look at the typings for
Cell, I see the following definition:Where
ReactText = string | number, so I'd expect that a string is still allowed.I know I can wrap my cell in an empty fragment, but feels like the wrong solution. Are there any other options?
TIA!