Interactive comments section using React, RTK query, Tailwindcss
Design comparison
Solution retrospective
I'm proud I also able to solve the challenge and finally put RTK query into practice. If I'm to solve the challenge next time, I will build it as a full stack project, right now I'm just using json-server to generate endpoints
To start this application run the following command (in your terminal) in the project directory
- npm install
- npm install json-server (if you don't have json-server installed)
- npm json-server --watch data/data.json --port 8000
- npm run dev
Community feedback
- @Code-BeakerPosted about 1 month ago
Hi there, congratulations on completing this challenge... 🥳
I visited your live preview and unfortunately it throws the error "Could not fetch the comments".
I hope you will look into it and fix the issue. Good luck! 😄
0@Error-at-nightPosted about 1 month ago@Code-Beaker Thank you
The reason it is showing the error is because I'm fetching the comments locally. I actually used json-server to watch the data.json file and generate an endpoint.
If you want to view the project, download the project from my github, and run the following command (in your terminal) in the project directory
-
npm install,
-
npm install json-server (if you don't have json-server installed)
-
npm json-server --watch data/data.json --port 8000
-
npm run dev
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