2022/01/09 posted in 基础 Tags: #React
不感知组件状态变化,需要数据时再从组件读取
感知组件状态变化,实时将状态保存到 state 中,需要数据时从 state 中读取