DEV Community


Posted on

how to collapse active menu when selecting another, in a menu react?

good afternoon I'm looking for help I have a navigation menu in react, the problem I have is that all the elements can be open and I want to have only one active element at a time, the code is in
I would appreciate it if someone could help me

Top comments (0)