Frontend Quiz using REACT, NEXTjs and TailwindCSS

Solution retrospective
Happy to have created my first project using react. Used next.js to set up the project.
What challenges did you encounter, and how did you overcome them?Working on the logic for displaying feedback for correct/incorrect answers, as well as idle or selected answers before submission. Ended up creating a separate component that returns each possible button layout using switch statement to validate the user answer against correct answer, or validating if answer is selected or idle before submission.
What specific areas of your project would you like help with?There are probably better solutions for how I created the answer buttons. Need to understand better other types of hooks. Only used useState, there are probably better ways to achieve the desired functionalities. Used typescript in the project, but still need to learn how to use types and the advantages of using it.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Felipe Sandoli's solution.
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