📜  反应状态范围 - Javascript 代码示例

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

代码示例1
Limited to its own component.
A state in React Component is its own local state, the state cannot be accessed and modified outside the component and can only be used inside the component which is very similar to, you already guessed it a function own local scope