Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

React, SASS, used useContext hook to pass props

@Ayodelearog

Desktop design screenshot for the Interactive rating component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


I would like anyone that can explain to me or point me to a resource that can help me fully understand Interfaces in TypeScript. I'm new to React and TypeScript and I tried to pass state as props to one of my child component, but it didn't work because I was unable to define the type of the "setState" function. I eventually had to use type "any" and that defeats the purpose of using TyeScript in the first place. I'd also appreciate comments on my tagNames.

Community feedback

Please log in to post a comment

Log in with GitHub
Discord logo

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