zakodium-oss / react-science

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

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

Closed targos closed 1 month ago

targos commented 1 month 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-pages[bot] commented 1 month 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