@awardit/react-graphql-hooks
v0.0.6
Published
## Example
Downloads
39
Readme
GraphQL Hooks for a simple client
Example
import { getDogs } from "./queries.graphql";
function Dogs(): JSX.Element {
const data = useQuery(getDogs, { type: "GOOD" });
return (
<ul>
{data.dogs?.map((dog) => (dog ? <li>{dog.name}</li> : undefined))}
</ul>
);
}