为了账号安全,请及时绑定邮箱和手机立即绑定

为什么 class 继承 react.component 内部不需要 super 就能使用this

class Welcome extends React.Component {
    render() {
        return {
            const { name, number } = this.props
        }    
    }
}

为什么继承之后不需要super

正在回答

举报

0/150
提交
取消

为什么 class 继承 react.component 内部不需要 super 就能使用this

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信