📜  我们可以在类外声明状态吗?Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:10.436000             🧑  作者: Mango

代码示例1
State is can be declare only in class if u want to declare in functional component use method useState();