til-jasontorres by Jason Torres
Modern React GraphQL Clients 2020
I've been looking into GraphQL clients/frameworks this weekend and here are my findings.
- useSWR - straightforward graphql + rest library. Highly recommended for applications that doesn't need subscriptions. Very easy to setup.
- Apollo Graphql V3 - General purpose. Highly recommended for big apps that requires subscriptions.
- React Relay - The experimental version seems to be heading to a really good direction so it would be good to revisit this by 2021. It also has good integration with Hasura. Old versions are totally not recommended.
- AWS Amplify (Datastore, API features)- this would have been a good alternative but not working well with NextJS SSR.