🥃 Features 🥃
- Expose
ExpanderComponentProps
TypeScript type. You can now:
type DataRow = {
....
};
const ExpandedComponent: React.FC<ExpanderComponentProps<DataRow>> = ({ data }) => {
return <pre>{JSON.stringify(data, null, 2)}</pre>;
};
// or
function ExpandedComponent({ data }: ExpanderComponentProps<DataRow>): JSX.Element {
return <pre>{JSON.stringify(data, null, 2)}</pre>;
}