react函数调用

2022-02-10  本文已影响0人  肥羊猪
import React, { Component } from 'react';

class func extends Component{
    constructor(porps){
        super(props);
    }
    funcThree:() => {
        console.log('箭头函数调用法')
    }
    render(){
        return (
            <button onClick={this.funcThree}></button>
        )
    }
}

上一篇 下一篇

猜你喜欢

热点阅读