最佳答案
How can I set the focus on a material-ui TextField
component?
componentDidMount() {
ReactDom.findDomNode(this.refs.myControl).focus()
}
I have tried above code, but it does not work :(