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.
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 the example using Vercel:
- Clone this repo
cd
into the folder- run
yarn dev