Bereaksi Mengapa Pemicu Fungsi Properti OnClick Tanpa Klik
change:
<button type="button" onClick={this.myFunction(argument)}> myButton </button>
to this:
<button type="button" onClick={this.myFunction.bind(this, argument)}> myButton </button>
Light Lemur