useFocusFrom
function useFocusFrom(element): object;
This hook gives the ability to set the focus on an element which is then blurred right away, thereby effectively resetting the focus order. The next focusable element that comes after this element will be focused on the next tab.
Parameters
| Parameter | Type | Description |
|---|---|---|
element | null | HTMLElement | element which focus point should start from |
Returns
object
focusFrom function, when called sets the focus point to the given element
| Name | Type |
|---|---|
focusFrom() | () => void |