Skip to content

v0.7.9: DataTable update - Change headerRender Prop

Compare
Choose a tag to compare
@jpfisher72 jpfisher72 released this 28 Aug 15:58
· 102 commits to main since this release

DataTable update - Allow React.FC in headerRender, disallow () => string:

Old: headerRender?: () => string | JSX.Element
New: headerRender?: React.FC | (() => JSX.Element)

Changed to allow use of state in the column header. Removed ability to return a string as it's not useful and complicates component. Use a template string in header prop if you want to use logic to render a string.