Reaccionar por qué el activador de la función de la propiedad OnClick sin hacer clic
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