-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreact19.txt
More file actions
29 lines (23 loc) · 1.11 KB
/
react19.txt
File metadata and controls
29 lines (23 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
React Server Components (RSC)
* Run components on the server, send serialized results to the client.
* Reduces bundle size & improves performance.
* Great for heavy logic/data fetching.
2️⃣ Concurrent Rendering
* React can prepare multiple UI updates in the background.
* Keeps apps responsive even with heavy computations.
3️⃣ Suspense for Data Fetching
* Suspense is no longer just for lazy loading.
* Handle async data (e.g. API calls) with clean UI fallbacks.
4️⃣ Automatic Batching
* Multiple state updates in the same event cycle get batched automatically.
* Fewer renders → better performance out of the box.
5️⃣ useSyncExternalStore Hook
* Standard way to subscribe to external stores (Redux, Zustand, etc).
* Ensures UI consistency across concurrent rendering.
6️⃣ React Compiler (a.k.a React Forget)
* Optimizes React code at compile-time.
* Removes unnecessary re-renders without manual memoization.
7️⃣ useOptimistic Hook
* Manage optimistic UI updates.
* Example: instantly show “comment added” before server confirms it.
* Makes apps feel fast and user-friendly.