Open brianHolonis opened 5 years ago
It works with hooks.
@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
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.
I am also receiving the error above when trying to use hooks.
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
If I use React hooks with a React.useState is this package expected to work with that?
Thank you.