Interactive comments section

Solution retrospective
In my work I used localstorage, additionally made it possible to give only one vote for a message and closed the possibility of voting for myself.
I didn't use recursion because of the low data depth.
What specific areas of your project would you like help with?I think there is an easier way to transform the data object.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @sumaiyakawsar
Great work!
I used a slightly different approach by importing the data directly from a .js file (treating the JSON as a JavaScript object) and referencing it as needed. In React, this is straightforward, as we can easily import and manipulate data files in this way. I'm not entirely sure if the same method applies as smoothly in Vue, but it was efficient for my use case.
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