DEV Community

Discussion on: Creating a CRUD app in React with Hooks

Collapse
 
claudewill1 profile image
Claude Will • Edited

One issue I ran into with this is that the deleteUser method deletes all users from the table when I just click delete on one of them.

Any idea how I can correct this? I originally found this tutorial on another website then did a search when I ran into the issue and came here. I am some what "new" to React and can't figure out why it's deleting all with clicking the delete button on a single item.

Thank you

Collapse
 
claudewill1 profile image
Claude Will

Found the issue. Heh I feel like an idiot, I always seem to have something really small that I'm missing. It's working fine now. Thanks for the article.