It's hard to see in the diff, but this new folder is a just a copy of the react-apollo example but with component based react changed out to use hooks, and the apollo client changed out to use the apollo react hook useQuery and useMutation.
Most relevant apollo react hooks changes (useMutation) are in App.js
This is an example of react hooks with apollo.
It's hard to see in the diff, but this new folder is a just a copy of the react-apollo example but with component based react changed out to use hooks, and the apollo client changed out to use the apollo react hook
useQuery
anduseMutation
.Most relevant apollo react hooks changes (
useMutation
) are in App.jsthanks.