Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atrue/react-concurrency-examples
https://github.com/atrue/react-concurrency-examples
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/atrue/react-concurrency-examples
- Owner: Atrue
- Created: 2024-05-27T13:12:29.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-05-29T10:56:55.000Z (6 months ago)
- Last Synced: 2024-10-18T08:07:39.071Z (about 1 month ago)
- Language: TypeScript
- Size: 70.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React concurrency examples
Examples of using different types of concurrency approaches to handle the same logic:
- Pure `async` (`useEffect`, `useCallback`, `setState`)
- `*generator()` tasks (`effection`, `useEffect`, `useCallback`, `setState`)
- Redux slice (`@reduxjs/toolkit`, `slice`, `thunk`)# Run
- `pnpm install`
- `pnpm dev`# Structure
Based on [Vite + React + SSR template](https://github.com/bluwy/create-vite-extra/tree/master/template-ssr-react-ts)
[Read more](https://vitejs.dev/guide/ssr) about vite SSR