React相关推荐文章
为什么 setState 是”异步“的?
https://github.com/facebook/react/issues/11527#issuecomment-360199710
什么时候 setState() 被批量调用?为什么?
https://stackoverflow.com/questions/48563650/does-react-keep-the-order-for-state-updates/48610973#48610973
为什么 setState 是”异步“的?
https://github.com/facebook/react/issues/11527#issuecomment-360199710
什么时候 setState() 被批量调用?为什么?
https://stackoverflow.com/questions/48563650/does-react-keep-the-order-for-state-updates/48610973#48610973
安卓/iOS 可以调用 JS 侧的全局对象来完成通信,那么使用 React/Vue 的时候我们的方法都封装在框架内部,并没有暴露在全局,原生侧调不到框架内部的方法,怎么办?
使用 EventEmitter!