reactjs - Why is there no onchange for `<Input>` in Ant design - Stack Overflow

PHOTO EMBED

Mon Oct 26 2020 00:49:38 GMT+0000 (Coordinated Universal Time)

Saved by @chesterton2020 #javascript

<Input
     placeholder="Flight name"
     size="large"
     value={this.state.someVal || ''}
     onChange={this.onChange}
   />
onChange = (e) => {
  this.setState({someVal: e.target.value})
}
content_copyCOPY

https://stackoverflow.com/questions/52378848/why-is-there-no-onchange-for-input-in-ant-design