Last active
August 29, 2015 14:21
-
-
Save Sigmus/f8afc38251cd4b9a90a7 to your computer and use it in GitHub Desktop.
Revisions
-
Sigmus revised this gist
May 13, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,7 +7,7 @@ module.exports = { }, focusFirstInput() { const input = this.refs.firstInput; // <input ref="firstInput" /> if (input) { React.findDOMNode(input).focus(); } -
Sigmus created this gist
May 13, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ const React = require('react'); module.exports = { componentDidMount() { this.focusFirstInput(); }, focusFirstInput() { const input = this.refs.firstInput; if (input) { React.findDOMNode(input).focus(); } } };