Can someone please explain the difference between using.
constructor(props){
super(props);
this.state = {
color: green
}
this.changeColor = this .changeColor.bind(this);
}
AND
//button onClick={this.changeColor.bind(this)}
Change color
// /button
Thanks.