DEV Community

Matheus Bertoldo
Matheus Bertoldo

Posted on

2

{HELP}Collapse in map() react

HI, I'm doing a collapse on the map (), when I click to open a card it opens normal but when I click to open another card it first closes the card that I had opened for the second click to open the card. I would like to open a card and when opening another card, keep the previous card open.

Alt Text

up to my button:

Alt Text

component I want to show / hide:

Alt Text

Top comments (0)

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

👋 Kindness is contagious

DEV is better (more customized, reading settings like dark mode etc) when you're signed in!

Okay