You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm trying to add React features (contact form with field check) into my website. Code is working great but got this warning :
Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.
I've try the code already in a blank astro project, no warning generated.
I've list react versions on my astrowind project, same result as the blank one:
npm ls react
└─┬ @astrojs/[email protected]
├─┬ [email protected]
│ └── [email protected] deduped
└── [email protected]
Do you have any ideas ?? Did you already got those issue ?
This my react feature :
Thanks for your help !!!
Beta Was this translation helpful? Give feedback.
All reactions