DEV Community

Discussion on: Learn how to create React JS table with delete functionality using API and hooks

 
brmuser9999 profile image
brmuser9999

Now suppose I click any of the view buttons from any row ,pass its id to onclick function... do a state change ..set the id to ID and conditionally do routing when ID is set:true ..does that work ?