zakodium-oss / react-science

React components and tools to build scientific applications.
https://react-science.pages.dev
MIT License
3 stars 6 forks source link

feat!: replace `getRowTrProps` with render prop `renderRowTr` #753

Closed targos closed 3 months ago

targos commented 3 months ago

The previous API was not flexible enough. Sometimes we need to call hooks in the context of the rows. Now this is possible with the pattern:

renderRowTr={({ row, children }) => {
  return <CustomTr row={row}>{children}</CustomTr>
}}
cloudflare-workers-and-pages[bot] commented 3 months ago

Deploying react-science with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5ba1943
Status: ✅  Deploy successful!
Preview URL: https://3a6955a6.react-science.pages.dev
Branch Preview URL: https://render-tr.react-science.pages.dev

View logs