state队列

72 阅读1分钟

设置 state 只会为下一次渲染变更 state 的值

image.png

一个 state 变量的值永远不会在一次渲染的内部发生变化

image.png

# 把一系列 state 更新加入队列

image.png image.png