Is there a way to set/remove focus on a interface component?

Let's say I wanted to set the focus on a specific input field so the cursor is placed inside it without having to click into it, is that possible?

  Discussion posts and replies are publicly visible

Parents Reply Children