https://github.com/kevinvandy/react-data-fetching
https://github.com/kevinvandy/react-data-fetching
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/kevinvandy/react-data-fetching
- Owner: KevinVandy
- Created: 2024-03-04T20:53:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-26T23:17:02.000Z (over 1 year ago)
- Last Synced: 2025-04-03T22:07:20.733Z (about 1 year ago)
- Language: TypeScript
- Size: 4.32 MB
- Stars: 275
- Watchers: 2
- Forks: 19
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React Data Fetching
A repository to showcase different ways to fetch data in React.
- [0-json-server](./apps/0-json-server) - backend server for the apps - `pnpm serve`
## Single Page Applications (Client-Side Only)
- [1-1-vite-componentdidmount](./apps/1-spa/1-1-vite-componentdidmount) - `pnpm dev1-1` [http://localhost:3311/](http://localhost:3311/)
- [1-2-vite-useeffect](./apps/1-spa/1-2-vite-useeffect) - `pnpm dev1-2` [http://localhost:3312/](http://localhost:3312/)
- [1-3-vite-reactquery](./apps/1-spa/1-3-vite-reactquery) - `pnpm dev1-3` [http://localhost:3313/](http://localhost:3313/)
- [1-4-vite-reactquery-refactor](./apps/1-spa/1-4-vite-reactquery-refactor) - `pnpm dev1-4` [http://localhost:3314/](http://localhost:3314/)
- [1-5-astro-react-spa](./apps/1-spa/1-5-astro-react-spa) - `pnpm dev1-5` [http://localhost:3315/](http://localhost:3315/)
## Static Site Generation (SSG)
- [2-1-nextjs-ssg](./apps/2-ssg/2-1-nextjs-ssg) - `pnpm dev2-1` [http://localhost:3321/](http://localhost:3321/)
- [2-2-astro-ssg](./apps/2-ssg/2-2-astro-ssg) - `pnpm dev2-2` [http://localhost:3322/](http://localhost:3322/)
- [2-3-astro-react-ssg](./apps/2-ssg/2-3-astro-react-ssg) - `pnpm dev2-3` [http://localhost:3323/](http://localhost:3323/)
## Server-Side Rendering (SSR)
- [3-1-nextjs-ssr](./apps/3-ssr/3-1-nextjs-ssr) - `pnpm dev3-1` [http://localhost:3331/](http://localhost:3331/)
- [3-2-remix-ssr](./apps/3-ssr/3-2-remix-ssr) - `pnpm dev3-2` [http://localhost:3332/](http://localhost:3332/)
- [3-3-sveltekit-ssr](./apps/3-ssr/3-3-sveltekit-ssr) - `pnpm dev3-3` [http://localhost:3333/](http://localhost:3333/)
- [3-4-astro-ssr](./apps/3-ssr/3-4-astro-ssr) - `pnpm dev3-4` [http://localhost:3334/](http://localhost:3334/)
## HTML Streaming (RSC / Astro Server Islands)
- [4-1-nextjs-rsc](./apps/4-streaming/4-1-nextjs-rsc) - `pnpm dev4-1` [http://localhost:3341/](http://localhost:3341/)
- [4-2-nextjs-rsc-react-query](./apps/4-streaming/4-2-nextjs-rsc-react-query) - `pnpm dev4-2` [http://localhost:3342/](http://localhost:3342/)
- [4-3-nextjs-rsc-react-query-streaming](./apps/4-streaming/4-3-nextjs-rsc-react-query-streaming) - `pnpm dev4-3` [http://localhost:3343/](http://localhost:3343/)
- [4-4-astro-server-islands](./apps/4-streaming/4-4-astro-server-islands) - `pnpm dev4-4` [http://localhost:3344/](http://localhost:3344/)