Filtering Down Component Map using click function react

I am currently working on a fun project and I want to know how to do something that has stumped for a bit.

Basically I am using Axios to get my data and then rendering data out in a .map func then I have a click function to show only the data that is corresponding to the ID for example ID 1 has some values that I want to show in another component. How do I do that?

If you see my sand box and click on one of the ids and see the console / code - this is where I am stuck at.

Cheers :slight_smile:

It’s kind of basic React: red-wood-1iygr - CodeSandbox

1 Like

Thank you, ok I get that it is basic and I am new to react so where can I learn more on filtering in react? Thank you :slight_smile:

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.