reagir múltiplas funções
// for functional component
onChange={(e) => { functionOne(); functionTwo(e); }}
Mehedi Islam Ripon
// for functional component
onChange={(e) => { functionOne(); functionTwo(e); }}
<a href="#" onClick={() => { func1(); func2();}}>Test Link</a>
twoCalls = e => {
this.functionOne(e)
this.functionTwo()
}
.
.
.
<FormControl
name="searching"
placeholder="Searching"
onChange={this.twoCalls}
/>
or
<FormControl
name="searching"
placeholder="Searching"
onChange={e => { this.functionOne(e); this.functionTwo() }}
/>