element.getParentComponent()Retrieves the component that directly contains the element. Returns null if the element is not inside a component.
These methods are in public beta and may change with future releases.
Promise<Component | null>
A Promise that resolves to a Component, or null if the element is not inside a component.
Checks for authorization only