Function useFocus

  • Hook which returns a ref for the element we will focus on, and a function to set the focus on that element.

    Type Parameters

    • T extends HTMLElement

    Returns [React.RefObject<T>, VoidFunction]

    Ref to focus on and function to set the focus {[React.RefObject, VoidFunction]}

    Export

Generated using TypeDoc