the binding event in a const return indicates that the method cannot be found, and the method has been written in the constructor. There is a loop in return.
CardClick(){
alert(0)
}
const list = this.state.data.map(function (m) {
return <Card className="card-sence UserCardStyle" onClick={this.CardClick}></Card>
});
onClick={alert(0)}alert
tried to bind this, with bind, but it didn"t work