This is a basic todo app built with urql
. It demonstrates some of the core principles of the framework, including:
- Creating a
client
. - Wrapping your app with
Provider
. - Using the
useQuery
hook to execute and refetch queries. - Using the
useMutation
hook to execute mutations. - Showing the devtools
To get started with the example, make sure to install urql
's dependencies in the root directory of your clone. We link
to the urql
source from the examples
directory, so its dependencies need to be installed.
# In root directory
yarn
cd examples/1-getting-started
yarn
yarn start
Navigate to example at http://localhost:3000/. You can use the urql devtools by
opening your console and navigating to the urql
tab.