How to create an onClick event on an icon in a column created using react-table

Viewed 28

Here's what my table looks like

I'm new to using the react-table platform

So i want if a user clicks on the edit icon it'll call a setter function which will set my state to true and open a modal component to edit the user's information.

0 Answers
Related