An open API service indexing awesome lists of open source software.

https://github.com/kevinvandy/react-query-demos

2 identical apps. 1 written with React Query and the other using traditional useEffects for fetching
https://github.com/kevinvandy/react-query-demos

react-query tanstack tanstack-query tanstack-react-query

Last synced: 8 months ago
JSON representation

2 identical apps. 1 written with React Query and the other using traditional useEffects for fetching

Awesome Lists containing this project

README

          

# React Query Demos

A demo of an app NOT using React Query

https://react-query-demos-with-useeffect.vercel.app/

A demo of the same app, but WITH React Query

https://react-query-demos-with-query.vercel.app/

## Run both projects at the same time Locally

### Install Deps

```bash
pnpm i
```

### Run Locally

```bash
pnpm dev
```

The useEffect demo will open on localhost:5001

The React Query demo will open on localhost:5002

### Code

View code differences in the `pages` directories of each app. The react-query app has an additional `hooks` folder to store the react-query hooks