📌  相关文章
📜  反应调用组件状态 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:18.993000             🧑  作者: Mango

代码示例2
If two components need access to the same state
they should have a common ancestor where the state is kept.