/** Focus the given element when it is mounted. */ export const initInput = (element: HTMLInputElement) => { element.focus(); };