Replies: 1 comment 3 replies
-
Typically this error happens when a component is called directly as a function (which isn't a valid way to invoke a component): function Foo(props) {
const [x] = useState()
return <span>{x}</span>
}
Foo() |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I keeo getting this error when trying to use hooks in child components. I used the preact-cli to build a simple scaffold. Not sure why this is happening. I see this discussion but i am not using anr url imports only the basic preact-cli v10.7.3
Beta Was this translation helpful? Give feedback.
All reactions