Answer the question
In order to leave comments, you need to log in
How to correctly add classes when selecting a menu?
How to make it more correct to add classes in case of menu item selection?
className={ typeDisplay === "map" ? "type-display-list__item type-display-list__item_active type-display-item" : "type-display-list__item type-display-item"}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question