Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React 18 事件 #46

Open
imfenghuang opened this issue Jun 23, 2024 · 0 comments
Open

React 18 事件 #46

imfenghuang opened this issue Jun 23, 2024 · 0 comments

Comments

@imfenghuang
Copy link
Owner

imfenghuang commented Jun 23, 2024

  • 委托事件在 listenToAllSupportedEvents 方法执行时,遍历 allNativeEvents 对支持的事件进行绑定(使用 listenToNativeEvent 方法)
  • 非委托事件在 complete work - finalizeInitialChildren 中,完成初始化时进行绑定(使用 listenToNonDelegatedEvent 方法)

React 事件 v2

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

No branches or pull requests

1 participant