Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 11 months ago

Comments section using React +tailwindcss

react, tailwind-css
Gerajaj•80
@gerajaj
A solution to the Interactive comments section challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

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.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community 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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License