Writing Custom React Hooks for GraphQL

Nader Dabit
Oct 31, 2018 · 5 min read

How to create custom React hooks to handle common GraphQL operations.

With the recent release of the new React APIs at React Conf 2018 there has been a flurry of discussion & open source libraries created around the new opportunities that hooks have made available to React developers.

When hooks first came out, I had a question: