Answer the question
In order to leave comments, you need to log in
How to hide another when clicking on one element?
Wrote a small dropdown
https://codesandbox.io/s/funny-https-xj2xk?file=/s...
Everything works, but how, when clicking on one dropdown (and this is a component), hide another dropdown?
Answer the question
In order to leave comments, you need to log in
Perhaps this solution will help you.
https://blog.logrocket.com/building-a-custom-dropd...
Or:
https://stackoverflow.com/questions/54549294/react...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question