Interactive comments section | React, TypeScript, SCSS
Design comparison
Solution retrospective
I think this might be my favorite challenge of Frontend Mentor. Really enjoyed working with data and implementing all the functionalities. I used React Context API for this challenge.
Feel free to leave any suggestions.
Community feedback
- @ccreusatPosted almost 3 years ago
Nice job ! Working like a charm. Just some strange bug I have : if I upvote/downvote it adds/substract 1 then if I do the opposite it adds/substract 2 (ex : 11 becomes 12 then 10)
0@LukaKobaidzePosted almost 3 years ago@ccreusat Yeah, that's how it should work right? If comment has an initial score of 11 and you downvote it, score becomes 10, but if you change your mind and then upvote it, score will be initial score (11) + 1
0@ccreusatPosted almost 3 years ago@LukaKobaidze Maybe.. I'm not sure this is how upvote/downvote work. User can't abuse upvote/downvote. From my point of view, I think it should be a one shot vote.
1
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