/react-query-demo

React Query demo

Primary LanguageJavaScript

React Query Example

This project is a demonstration of how to use React Query library to perform the following frontend API requests:

  • Basic query
  • Paginated query
  • Infinite query
  • Create, Update and Delete requests

This demo project is setup with:

I've written a breakdown article for this project which is available on Sitepoint.

Run Locally

Clone the project

git clone git@github.com:Monaam12/react-query-demo.git

Go to the project directory

cd react-query-demo

Install dependencies

npm install

Start the json-server

npm run json-server

Launch another terminal and start the Vite server

npm run dev