import { useQuery } from '@apollo/client' import { ALL_AUTHORS } from '../queries' import BirthYearForm from './BirthYearForm' const Authors = ({ token }) => { const result = useQuery(ALL_AUTHORS) if (result.loading) { return
| Born | Books | |
|---|---|---|
| {a.name} | {a.born} | {a.bookCount} |