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 using React & Firebase

Xuan Hung 120

@xuanhung1509

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'm looking forward to hearing your suggestions on the implementations of function handling replies (add, update, delete, vote) in CommentContext. Can it be improved?
  • I'm also curious about the way you guys structure your comment and replies element in the markup because I'm not sure if mine is optimized.
  • Btw, I had trouble using json-server in production (CORS), so I decided to use Firebase as backend. I realized that listening to realtime changes in Firebase make the handler functions in CommentContext a lot easier, and the amount of action in reducer is significantly reduced (see branch dev vs master). I'm not sure if there's anything to concern because I'm not familiar with this behavior of Firebase.

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