{({ loading, error, data }) => {
if (loading) return "Loading..."
if (error) return `Error! ${error.message}`
const { viewer } = data;
return (
{viewer.name} {viewer.login}
)
}}
)
```
]
---
### React Apollo advanced concepts
React apollo helps you implement first-class features
- caching
- mutations
- optimistic UI
- subscriptions
- pagination
- server-side rendering
- prefetching
- and more..
---
### React apollo starter