Rating Component

Solution retrospective
Learned how to switch components when a button is clicked which allowed for me change the card content when the submit button is clicked. I also passed props to a component, which allowed me to use another components variables. This is shown with number you selected on the thank you screen. Although I tried I wasn't able to find a way to only allow the user to select one option at a time. I'm sure it is simple enough to do but I struggled.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Luca'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