@ctablex/core
Advanced tools
Changelog
0.4.0 (2022-10-16)
Now components can be customized with xEl prop instead of xProps. It helps for a better type check.
return <Row TrProps={{ className: 'zebra' }} />;
// vs
return (
<Row
trEl={
<tr className="zebra">
<Children />
</tr>
}
/>
);
// or
const MyTr = withDefaultChildren('tr');
return <Row trEl={<MyTr className="zebra" />} />;
Changelog
0.3.0 (2020-12-20)