graphql-hooks hooks first client of graphql

graphql-hooks are hooks first graphql a client that supports a number of properties

  • The first class hooks api
  • Relatively small (5.3Kb) gzip 1.8 kb
  • Full support ssr (by graphql-hook-ssr)
  • Plug-in cache support of (graphql-hooks-mmecache)
  • Purgatory problems do not concern render props
  • Error handling and loading state simplification

Explanation

graphql-hooks give us also provide a good alternative client actually urql is a very good choice

Reference material

https://github.com/nearform/graphql-hooks 
https://github.com/nearform/graphql-hooks/tree/master/packages/graphql-hooks-ssr

Guess you like

Origin www.cnblogs.com/rongfengliang/p/10971357.html