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:
- Vite: A very fast build tool
- WindiCSS: A very fast Tailwind CSS compiler
- React Hook Form: Form builder and validation library
- React Modal: An accessible modal component
- Axios: Promised based HTTP client for browsers
- JSON Server: Full fake REST API server
I've written a breakdown article for this project which is available on Sitepoint.
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