Skip to content

setFocus

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

Type

ts
type setFocus = (name: string) => void

Props

name: string

A input field name to focus

ts
setFocus('test')

Released under the MIT License.