I am using semantic-ui-react's Form.Input, which wraps the input in two divs.
This means,
<Form.Input type='password' name='password' id='loginPassword'></Form.Input>
is rendered as follows:
<div class='field'>
<div class='ui fluid action left icon input'>
<input type='password' name='password' id='loginPassword' ...>
<button ...>
</div>
</div>
I would like to get the ref for the <input/>
element, so that I can call focus().
How do I get a ref to the <input/>
element?
BTW, I am using redux, although I don't think that matters
As you're using findDOMnode (usually not advised), you're back into standard js, so this :
ReactDOM.findDOMNode(your ref).querySelector('input')
should work