DEV Community

guzmandiegoandres12
guzmandiegoandres12

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
https://github.com/guzmandiegoandres12/reactBackoffice
I would appreciate it if someone could help me

Top comments (0)