Skip to content
On this page

setFocus

This method will allow users to programmatically focus on input. Make sure input's ref is registered into the hook form.

Type

type setFocus = (name: string) => void

Props

  • name: string
    • A input field name to focus
    • setFocus('test')
      

s