Why I should use Constructor and Super functions for using Props?

前端 未结 0 354
梦如初夏
梦如初夏 2020-12-01 05:09

When I use this.props without any constructor and super, it works well. So my question is why someone use this code :

          


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