非合成事件到底是什么(在React Lib外部管理的事件)是什么?
我知道一个合成事件是例如, onclick = {handlerfunction}
问题是 理解react batching 。
I know that a synthetic event is for example, onClick={handlerFunction}
The question is to understand React batching.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一个 event 是描述“发生”事物的API (就像点击一样)。
本地事件是浏览器创建的事件。
a 综合事件是一种兼容性api,是一种兼容性API,在围绕天然事件的天然事件中生成以使浏览器之间的差异归一化。
An Event is an API for describing "things that happen" (like clicks).
A native event is one the browser creates.
A synthetic event is a compatibility API that React generates around native events to normalise differences between browsers.