https://github.com/taiseen/learning-react-query
React Query || LWS
https://github.com/taiseen/learning-react-query
axios json-server react-hook-form react-js react-query react-toastify use-mutation use-query vite
Last synced: 2 months ago
JSON representation
React Query || LWS
- Host: GitHub
- URL: https://github.com/taiseen/learning-react-query
- Owner: taiseen
- Created: 2024-02-21T19:14:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-05T10:10:25.000Z (almost 2 years ago)
- Last Synced: 2025-03-02T06:18:56.658Z (over 1 year ago)
- Topics: axios, json-server, react-hook-form, react-js, react-query, react-toastify, use-mutation, use-query, vite
- Language: JavaScript
- Homepage: https://learning-react-query.netlify.app
- Size: 42 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
> 21 February 2024
# React Query
- Server Start
```
yarn start
```
- Client Start
```
yarn dev
```
## Dependance:-
- yarn add axios
- yarn add json-server
- yarn add react-toastify
- yarn add react-hook-form
- yarn add react-router-dom
- yarn add @tanstack/react-query
- yarn add @tanstack/react-query-devtools
### Client side setup
- 1st - `react-query`
- by Context api setup style - implement react-query at root level of app
- setup browser dev tools for debugging
- 2nd - `useQuery` hook
- for get data form server use this `useQuery` hook
- pass fetching function inside its as value of `queryFu` property