Frontend System Design
How would you implement a menu structure that collapses open sub-menus when a new parent is selected, while maintaining the expanded state when interacting with nested sub-menus?
Was asked at
More interviews, more skills, more success.
Be the first to share your approach to this question
Interview question asked to Frontend Engineers interviewing at Twitch, Chewy, Canva and others: How would you implement a menu structure that collapses open sub-menus when a new parent is selected, while maintaining the expanded state when interacting with nested sub-menus?.