Submitted over 2 years ago
Interactive comment section using React & Firebase
@xuanhung1509
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 GitHubJoin 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