React useState appears null

后端 未结 0 1734
误落风尘
误落风尘 2020-12-13 00:27

I tried to refactor my class components into functional with hooks, but struggle with initial state declaration.

Code as follows:

export default functi         


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