Design comparison
Solution retrospective
Hello! :) It was really challenging. I tried to take into account all the nuances in this challenge. I'd like to receive feedback if there is something I can improve or optimize.
Community feedback
- @slothmast3rPosted almost 3 years ago
Hey! Really great work! There are a lot of things I learned from your code!
There are parts of your code that is a little unreadable for example
let comment = (replyToId !== undefined && replyToId !== commentId) ? state.comments[replyToId - 1].replies.find(reply => reply.id === commentId) : state.comments.find(comment => comment.id === commentId)
what I would recommend is to name more variables and constants.Your "time display solution" is perfectly fine. I don't have any objections. Just wanted to share with you that there is a moment.js plugin that helps you display time :)
0
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