摘要:
"React Elements vs React Components " 阅读全文
posted @ 2018-02-06 18:03
joe_ice
阅读(111)
评论(0)
推荐(0)
摘要:
React状态更新是异步的,为了性能优化,状态更新都是批量更新的。 但是否可以确认 setState 调用后状态的更新顺序呢? 考虑以下按钮点击的例子: 是否有可能 a 是 false,b 是 true? import React, { PureComponent } from 'react'; c 阅读全文
posted @ 2018-02-06 10:38
joe_ice
阅读(1206)
评论(0)
推荐(0)