react-table-example
react-table-example copied to clipboard
UseTableCellProps render method should allow to pass function as an argument.
React table doc states that the render method can accept a function as an argument but it is not supported by the current type definition:
render: (type: 'Cell' | string, userProps?: object) => ReactNode;
Take a look at https://github.com/DefinitelyTyped/DefinitelyTyped/pull/56704
If there's a bug (and I'm not saying that there isn't) then it's in the types, not in this repo. If you can give me an example of how you'd like it to work, then I'll take a look at fixing it, but I'm tight on time so to be honest I'm not going to invest that much in this otherwise. There are already easy ways to avoid this situation.