43

React事件系统和源码浅析

 5 years ago
source link: https://juejin.im/post/5bdf0741e51d456b8e1d60be
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
抱歉在掘金页内链接失效,后续会改正 查看原文 TL;DR 本文通过对React事件系统和源码进行浅析,回答“为什么React需要自己实现一套事件系统?”和“React的事件系统是怎么运作起来的?”两个问题。React为了性能和复用,采用了事件代理,池,批量更

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK