Interactive Comment Section using React and Sass

Solution retrospective
This is my first time making a project using react, so any feedback or advice will be great, when I try to make this project there's a few things that I get stuck on, which is :
• At first I’m still pretty confused on how I get the data, when I just started I thought that I need to create state for comment and replies separately, but then I realized that I need to make the replies become the “children” for the specific comment which is the “parent” using the parent id
• When I tried to save my data to local storage, it’s seem that every time I reload the page it always set to an empty array, and after I search stack overflow for the solution, I found out that I need to initialize my state using the local storage value and then the code finally works !
Other than that it was a pretty fun challenge, and I learnt a lot about react 🥳🎉!!
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Shann Timothy'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