DEV Community

Discussion on: React Hooks Noob, please help...

Collapse
 
hellozeze profile image
UncleZeze πŸ‡ΏπŸ‡¦

Obviously, as the docs state, you are not allowed to execute hooks inside of an event handler and other forbidden things.

As a workaround, you can execute fetch... Ultimately, what I am looking for is interaction with the graphql endpoint. So a simple fetch does the job.