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
- Host: GitHub
- URL: https://github.com/matiasfha/react-query-example
- Owner: matiasfha
- Created: 2021-04-19T18:50:19.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-01-07T06:49:14.000Z (over 3 years ago)
- Last Synced: 2025-07-07T00:14:13.428Z (12 months ago)
- Topics: nextjs, react-query, vercel
- Language: JavaScript
- Homepage: https://react-query-example.vercel.app
- Size: 485 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
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):
[](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`