Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React hooks #112

Open
brianHolonis opened this issue Oct 1, 2019 · 5 comments
Open

React hooks #112

brianHolonis opened this issue Oct 1, 2019 · 5 comments

Comments

@brianHolonis
Copy link

If I use React hooks with a React.useState is this package expected to work with that?

Thank you.

@captrespect
Copy link

It works with hooks.

@celtic7716
Copy link

@bcherny is this answer correct? I'm getting the mismatched component error even though my functional component with hooks is not a child of any class components:

Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component

@nickvallee
Copy link

nickvallee commented Dec 11, 2020

I am also receiving the error above when trying to use hooks.

I am using them within a functional component in the same way that I use them in a none react2angular React component, and that is working fine.

@gmoura
Copy link

gmoura commented Mar 15, 2022

I am also receiving the error above when trying to use hooks.

@elpddev
Copy link

elpddev commented Mar 15, 2022

We are using react inside angularjs for now without a problem. Including functional components. Not sure what we did back then when we received the error but it works now.

function TopLevelReact

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants