How does react get the real dom?

some problems with using AntD in the components of React

I want to get the value in the text box

class Demo extends Component {/ /

onChange () { / / events triggered by text box change
console.log (this.refs.input1) / / list of input details ( Input {props: { }, context: {. } and so on )
console.log (this.refs.input1.value) / / undefined
}

render () {
retrn (

)
 <Input ref="input1" onChange={this.onChange}/>

< / div >
)
}

Mar.29,2021

I caught
console.log (this.refs.input1.input.value)


The

onChange event provides the value of value.

<Input ref='input1' onChange={input => this.onChange(input)}/>


onChange(input) {
    const value = input.target.value;
    console.log(value); //Input
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b30e1b-2bd57.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b30e1b-2bd57.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?