合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
Expected `onClick` listener to be a function, instead got a value of `string` type. ``` class Square extends React.Component { getzhi(){ console.log('1') } render(){ return( <div> <button onClick="getzhi">{this.props.value}</button> </div> ) } } ``` ``` class Square extends React.Component { getzhi(){ console.log('1') } render(){ return( <div> <button onClick={this.getzhi}>{this.props.value}</button> </div> ) } } ``` ``` class Square extends React.Component { getzhi(){ console.log('1') } render(){ return( <div> <button onClick={this.getzhi}>{this.props.value}</button> </div> ) } } ``` ```