Skip to main content
added 20 characters in body
Source Link
GAEfan
  • 11.4k
  • 2
  • 19
  • 34

This is not longer the best answer. As of v0.13, this.refs ismay not available until AFTER componentDidMount() runs, in some odd cases.

Just add the autoFocus tag tag to your input field, as FakeRainBrigand showed above.

This is not longer the best answer. As of v0.13, this.refs is not available until AFTER componentDidMount() runs.

Just add the autoFocus tag to your input field, as FakeRainBrigand showed above.

This is not longer the best answer. As of v0.13, this.refs may not available until AFTER componentDidMount() runs, in some odd cases.

Just add the autoFocus tag to your input field, as FakeRainBrigand showed above.

Source Link
GAEfan
  • 11.4k
  • 2
  • 19
  • 34

This is not longer the best answer. As of v0.13, this.refs is not available until AFTER componentDidMount() runs.

Just add the autoFocus tag to your input field, as FakeRainBrigand showed above.