Submitted about 2 years ago
React, SASS, used useContext hook to pass props
@Ayodelearog
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 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