DEV Community

Discussion on: Invalid hook call. Hooks can only be called inside of the body of a function component. ??

Collapse
 
gurupal profile image
Gurupal Singh

can i query graphql direct with axios and remove apollo client ?

Collapse
 
jackmellis profile image
Jack

Itd be very difficult to query graphql without some dedicated library but apollo client is an entire state management system so is overkill for what you need
There are several graphql libraries like npmjs.com/package/graphql-request