@awardit/react-graphql-hooks
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

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>
  );
}

Readme

Keywords

none

Package Sidebar

Install

npm i @awardit/react-graphql-hooks

Weekly Downloads

9

Version

0.0.6

License

none

Unpacked Size

10.9 kB

Total Files

6

Last publish

Collaborators

  • m4rw3r
  • lokecarlsson
  • poggen