我知道通过Class创建的组件可以在super后设置this.state,以及使用componentDidMount函数,但是对于这种变量声明类的又该怎么去使用react的this.state和生命周期函数呢 查看完整描述