Design comparison
SolutionDesign
Solution retrospective
My score is not updating as expected. I have used useState hook and passed the setScore function to the child component so that it can update the score as expected. But instead of running when component is mounted it's running more than that and updating score based on that. Please help me with this so that I can move further with mobile version of the same.
Community feedback
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