Skip to content

Commit cab2fc2

Browse files
Merge branch 'main' of https://github.com/reactjs/react.dev into sync-a1cc2ab4
2 parents 8fb45ee + a1cc2ab commit cab2fc2

File tree

8 files changed

+1959
-198
lines changed

8 files changed

+1959
-198
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,6 @@ public/rss.xml
4343
# claude local settings
4444
.claude/*.local.*
4545
.claude/react/
46+
47+
# worktrees
48+
.worktrees/

src/content/blog/2025/12/11/denial-of-service-and-source-code-exposure-in-react-server-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ See [this issue](https://github.com/facebook/react-native/issues/54772#issuecomm
106106

107107
**CVEs:** [CVE-2026-23864](https://www.cve.org/CVERecord?id=CVE-2026-23864)
108108
**Base Score:** 7.5 (High)
109-
**Date**: January 26, 2025
109+
**Date**: January 26, 2026
110110

111111
Security researchers discovered additional DoS vulnerabilities still exist in React Server Components.
112112

src/content/reference/react/Activity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ In this way, Activity can be thought of as a mechanism for rendering "background
4848
#### Caveats {/*caveats*/}
4949

5050
- If an Activity is rendered inside of a [ViewTransition](/reference/react/ViewTransition), and it becomes visible as a result of an update caused by [startTransition](/reference/react/startTransition), it will activate the ViewTransition's `enter` animation. If it becomes hidden, it will activate its `exit` animation.
51-
- An Activity that just renders text will not render anything rather than rendering hidden text, because there’s no corresponding DOM element to apply visibility changes to. For example, `<Activity mode="hidden"><ComponentThatJustReturnsText /></Activity>` will not produce any output in the DOM for `const ComponentThatJustReturnsText = () => "Hello, World!"`.
51+
- A *hidden* Activity that just renders text will not render anything rather than rendering hidden text, because there’s no corresponding DOM element to apply visibility changes to. For example, `<Activity mode="hidden"><ComponentThatJustReturnsText /></Activity>` will not produce any output in the DOM for `const ComponentThatJustReturnsText = () => "Hello, World!"`. `<Activity mode="visible"><ComponentThatJustReturnsText /></Activity>` will render visible text.
5252

5353
---
5454

src/content/reference/react/hooks.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ There are two rarely used variations of `useEffect` with differences in timing:
7979
* [`useLayoutEffect`](/reference/react/useLayoutEffect) fires before the browser repaints the screen. You can measure layout here.
8080
* [`useInsertionEffect`](/reference/react/useInsertionEffect) fires before React makes changes to the DOM. Libraries can insert dynamic CSS here.
8181
82+
You can also separate events from Effects:
83+
84+
- [`useEffectEvent`](/reference/react/useEffectEvent) creates a non-reactive event to fire from any Effect hook.
8285
---
8386
8487
## Performance Hooks {/*performance-hooks*/}

src/content/reference/react/useActionState.md

Lines changed: 1447 additions & 154 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)