Replies: 1 comment
-
Look into the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys,
So, to be clear on what I want, how can I make an entire row behave like a
<Link />
and render another component on click, while also preserving the action buttons at the end of it? My table has anedit
and adelete
button at each row, so the "clickable row" behavior must not override those buttons' actions.Each row should be able to access a property called
movieId
from the fetched data, and then navigate to/details/${movieId}
. I believe that it should be done where the table is rendered, probably whererow.getRowProps()
is called, but my knowledge of react-table is very limited yet, so I have no idea how to proceed.Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions