Design comparison
SolutionDesign
Community feedback
- @KorneyChervonenkoPosted 7 months ago
Hello friend,
- It seems to me that you have added event listener to every unread notification but what if you have hundreds or thousands of those? Your JS would be inefficient. It’s better to add only one event listener to some container of notification elements and after click event just find out which notification was clicked exactly
- I think when user clicks on the unread notification remove mark must be removed and counter decreases by one. Am I wrong?
0
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