Design comparison
SolutionDesign
Solution retrospective
Is there any way to toggle between a read message and an unread message without storing it in individual variables
Community feedback
- @rodevasiaPosted almost 2 years ago
Hi gidado662003, you can do it if you generalize the data into a JSON format. So that you can add a property like
read:true
can easily toggle between all items. If you want reference you can look into my code. I've put data into another file and used it. https://github.com/DOCSPLOIT/notificatate0
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