Design comparison
SolutionDesign
Solution retrospective
Another project done with React, Tailwind CSS and TypeScript. I added an intermediate layout for tablets and an error message if the link is invalid. When resizing the screen, I made the mobile menu close, and saw that the eventListener was being called multiple times as I resized the screen. To solve that, whenever I resize the screen, the mobile menu closes and the eventListener is removed. If I open the mobile menu again, the eventListener is added again. Feedback is welcome!
Community feedback
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord