Design comparison
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.
Community feedback
- @hyrongennikePosted about 2 years ago
Hi,
Nice job on your first attempt of the challenge Just two suggestions maybe disable the button until a rating a selected use the disable by default and remove it when a rating is click currently it gives you 0 which is not an option.
There seems to be a bug if you click more than one rating it gives you the first one you clicked but it highlights all the other as well.
Hope this is helpful.
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