Edit: I don\'t want to call handleChange only if the button has been clicked. It has nothing to do with handleClick. I gave an example in the @shubhakhatri
I think you should change that like so:
{this.handleChange(e)}}/>
That is in principle the same as onClick={this.handleClick.bind(this)}
as you did on the button.
So if you want to call handleChange()
when the button is clicked, than:
or
handleClick () {
this.setState({value: 'another random text'});
this.handleChange();
}