-
Notifications
You must be signed in to change notification settings - Fork 0
FixedDataTable
Hill Liu edited this page Jul 12, 2018
·
6 revisions
- generated is different on the client or server
if (React.isValidElement(props.cell)) {
content = React.cloneElement(props.cell, cellProps);
} else if (typeof props.cell === 'function') {
content = props.cell(cellProps);
} else {
content = (
<FixedDataTableCellDefault
{...cellProps}>
{props.cell}
</FixedDataTableCellDefault>
);
}