Making the rows clickable is not a native possibility, however it seems you still have a few options :
Add event listeners directly on DOM to trigger your actions (but is kinda an anti pattern with react).
For string data you can add dom (maybe components also) element inside your rows array. You could define your function and wrap each of your data with a <div onClick="..."></div>. To make UX better and make the whole row clickable (and not just its content), you would need to add some custom css to your wrapping div so it goes beyond initial polaris cell padding.
2
Answers
Making the rows clickable is not a native possibility, however it seems you still have a few options :
rows
array. You could define your function and wrap each of your data with a<div onClick="..."></div>
. To make UX better and make the whole row clickable (and not just its content), you would need to add some custom css to your wrapping div so it goes beyond initial polaris cell padding.See the link below :
https://codesandbox.io/s/kind-joliot-ich3x?file=/App.js
Just need to change each row with the below-given HTML code & add CSS to your project.