Interactive comments section with dark theme and timestamps

Solution retrospective
👋Hey there here's my solution for this challenge.
This turned out to be more complicated than I expected but I learnt a lot along the way.
Some things I learnt:
- working with json
- manipulating nested data
- some new array methods
- I learnt to use tailwind (and how its darkmode works)
- React Context / Reducers
Working features
- creating, updating, deleting comments
- replying comments
- replying to a reply
- save and persist state with local storage
- get relative time from when comment was made
Hardest part of this for me was dealing the nesting of objects especially replying to a reply
Some issues with current implementation:
- The voting logic is proving to be a bit tricky and I'm still working on it.
Please feel free to go through my code and give any criticisms to improve my code || tips to solve my current issues
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Taqib's solution.
Join 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