Is it bad to have top-level variables in react?

后端 未结 0 1066
我寻月下人不归
我寻月下人不归 2020-12-24 12:46

I am learning react and it just seems wrong to have top-level variables. I always hear that I need to use state but it is hard to use state when there are many classes/funct

相关标签:
回答
  • 消灭零回复
提交回复
热议问题