Skip to content

docs(cn): translate "separate events from Effects" section in hooks.md#1918

Merged
loveloki merged 1 commit into
reactjs:mainfrom
Sophran-fbj:translate-hooks-separate-events
May 11, 2026
Merged

docs(cn): translate "separate events from Effects" section in hooks.md#1918
loveloki merged 1 commit into
reactjs:mainfrom
Sophran-fbj:translate-hooks-separate-events

Conversation

@Sophran-fbj
Copy link
Copy Markdown
Contributor

Summary

Translate the remaining English snippet in src/content/reference/react/hooks.md about separating events from Effects.

Changes

- You can also separate events from Effects:
+ 你也可以将事件从 Effect 中分离:

- - [`useEffectEvent`](/reference/react/useEffectEvent) creates a non-reactive event to fire from any Effect hook.
+ - [`useEffectEvent`](/reference/react/useEffectEvent) 创建一个不具响应性的事件,可以在任意 Effect Hook 中触发。

The useEffectEvent page itself was already translated in #1813 and #1860, but this short paragraph on the Hooks index page was missed.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
zh-hans-react-dev Ready Ready Preview, Comment May 11, 2026 9:11am

Request Review

@github-actions
Copy link
Copy Markdown

Size changes

Details

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@loveloki loveloki merged commit 42f33d7 into reactjs:main May 11, 2026
9 of 10 checks passed
@loveloki
Copy link
Copy Markdown
Collaborator

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants