I am a bit stuck with my component, I need to call onChange from the props, so
<input type="text" value={this.state.text} onChange={this.props.onChange} />
but also call another function in a component with a name handleChange()that updates state.text, I tried
<input type="text" value={this.state.text} onChange={this.props.onChange; this.handleChange} />
but it does not work.
source
share