shawlp / interview-codes

1 stars 0 forks source link

React setState是同步还是异步? #34

Open shawlp opened 3 years ago

shawlp commented 3 years ago

同步:原生事件,setTImeout/setInterval 异步:合成事件,生命周期函数