Home > @asl-19/react-dom-utils > useFocusElementAfterRender
Focus a provided element after the current render.
This is necessary to focus an element that will only become focusable after the current render is complete (e.g. if the element comes into view as a result of a setState an event callback).
Signature:
useFocusElementAfterRender: () => import("react").Dispatch<import("react").SetStateAction<HTMLElement | null>>Returns:
import("react").Dispatch<import("react").SetStateAction<HTMLElement | null>>