An open API service indexing awesome lists of open source software.

https://github.com/matiasfha/react-query-example

A react-query example
https://github.com/matiasfha/react-query-example

nextjs react-query vercel

Last synced: 4 months ago
JSON representation

A react-query example

Awesome Lists containing this project

README

          

## React-query example project

This is an example project, a TODO list that shows how to use react-query step by step. Check the Pull request to see the steps followed each time.
It starts by using just `useReducer` and `useEffect` along with axios to finally enable optimistic updates with react-query.

### Serverles

This a serverless next app that use Airtable to save the data. You can see the serverless function inside the `pages/api/todos` folder.

## Deploy your own

Deploy the example using [Vercel](https://vercel.com):

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/vercel/next.js/tree/canary/examples/hello-world)

## How to use

1. Clone this repo
2. `cd`into the folder
3. run `yarn dev`