Design comparison
Solution retrospective
Hello everyone! (≧∇≦)ノ
I’m happy to share with you my solution for this challenge. I used React and TypeScript to create an interactive comment section. I learned a lot from this project, especially how to use the reducer and context hooks.
However, I also faced some difficulties, such as typing the state and actions, and manipulating nested arrays. If you have any feedback or tips on how to improve my code, I would appreciate it if you could leave a comment below.
I decided to flatten the array of comments to make it easier to work with. I wonder if there is a better way to do this without losing the structure of the data.
Thank you for taking the time to check out my solution!
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