kazagkazag
7/13/2016 - 8:00 AM

react-11.jsx

class MyComponent extends Component {
  
  render() {
    return <input ref={(element) => this._input = element} />;
  }
  
  componentDidMount() {
    this._input.focus();
  }
  
}