I'm trying to write reusable tag control with reagent. What I need to do is to focus input field after user clicks ancestor div element. To be more clear, I would like to set focus on input with class tag-input after user clicks div with class form-element How can I implement this?
[:div.form-element
[:div.some-other-class
[:ul
[:li "entered-tag"]
]
]
[:input.tag-input {:type "text"}]
]