Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/atrue/react-concurrency-examples


https://github.com/atrue/react-concurrency-examples

Last synced: about 1 month ago
JSON representation

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