use-parent
Retrieve a node higher than the current webcomponent.
Module
import { useParent, useParentPath } from "@atomico/hooks/use-parent";Syntax useParent
const selector = "form";
const parent = useParent(selector);Syntax useParentPath
const parents = useParentPath(composed?: boolean);Example
Last updated
Was this helpful?
