I have a table component that receives an array of string/number arrays as a prop, so it takes a rows parameter typed like this:
type Row = (string | number)[];
However, some columns need to display a React component instead of a plain text / number.
How can I change the typings to make it work? I tried this:
type Row = (string | number | React.PureComponent | React.Component)[];