Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Your session has expired please log in again.
Your session has expired please log in again.
Your session has expired please log in again.

Submitted

Comments section using React +tailwindcss

Gerajaj 80

@gerajaj

Desktop design screenshot for the Interactive comments section coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
3intermediate
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

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.

Community feedback

Please log in to post a comment

Log in with GitHub
Discord logo

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