Theo's Typesafe CultTTC
Theo's Typesafe Cult4y ago
16 replies
bigsexy

rules of hooks question

Im looking at an article rn (https://kentcdodds.com/blog/how-to-use-react-context-effectively) and trying to do something similar in my context with using a custom hook that calls the useContext(). However im getting invalid hook call error, im assuming for abusing the rules of hooks.
unknown.png
Was this page helpful?