Shouldn’t this be just onClick without the underscore?
Andreas Köberle
2
Yes but the click handler adds the function without the underscore, so how does this work? Is this some kind of react magic?
render() {
return <button onClick={this.onClick} />;
}