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
Not Found
Not Found
Not Found

Submitted

Interactive Comment Section with VueJS and TailwindCSS

#vite#vue#tailwind-css
Ekure Edem• 260

@astraldev

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


I've had a lot of issues with state management and hopefully, I need some suggestions on how to optimise the app..

Any Ideas? or Suggestions?

Community feedback

Ahmed El_Bald• 1,020

@Ahmed-Elbald

Posted

Hi Ekure, So I think your solution is great. But I think u can optimize a little bit.

  • The user should have the option of replying to another reply (not just comments). So this should actually be a comment tree like in Facebook for instance. If u don't know how to do that, read a little bit about something called "recursion" or u can see my solution here.

  • When the user edits a comment/reply, the (@userName) gets added automatically and that's good. But, when they do that again, ur solution adds it twice and so on and so forth. So I guess this is a downside u can work around a little.

Marked as helpful

1

@louis-bamidele

Posted

@Ahmed-Elbald you should reset your input field after the user add new content

0

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