@citydna/agol
!!! DEPRECATED !!!
🗺 useAgol hook
DatoCMS is a headless CMS with a robust GraphQL API and a great user interface. It's the tool of choice when creating content-heavy citydna apps. There's a bit of setup required to get it working with apollo tooling though, so we've done that for you.
We've also included some scripts that make typescript development awesome and jest testing your graphql components an absolute breeze.
Installation
$ yarn add @citydna/agol
Hook usage
- add
REACT_APP_AGOL_TOKEN=<YOUR_AGOL_TOKEN>
into your .env
file*
import React from "react"
import { useAgol } from "@citydna/agol"
export const Example = () => {
const { data, loading, error } = useAgol({})
}