Comments section using React +tailwindcss

Solution retrospective
It was an interesting experience. I am learning more and more. I am proud that I did the most of the logic by myself. Next time I will learn how to use other hooks, to use Global components and put the logic in there, I was afraid of because I had to use so much code. And finally I will learn how to create and how to use my own hooks, in order to recycle the most of the logic.
I omited that "Are you sure to delete this?" screen/window but later I will update the dist document to deploy it on netlify.
What challenges did you encounter, and how did you overcome them?It was my first time using .json but I wan to try to learn how to consume an API in the next challenge. At the beginning I found hard how to print the new comments with a score=0, and it happened because I didn't see that there was a currentUser. So I changed what I have to change, basically reply.id ===4 to reply.id===currentUser.user, and it worked. Well, once I changed that, I fixed all my struggles, for example, when I was pressing the "delete" button all the replies or comments were deleted, the main avatar was deleted too, it was a chaotic. But everything went well before that change.
What specific areas of your project would you like help with?All, I know I have too much to learn so feel free to let me a feedback. I will appreciate it.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Gerajaj'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