Function getOwnerInstance

  • Get the React owner instance of an element

    Parameters

    • element: Element

      Element to get the React owner instance of

    Returns React.Component & Record<string, unknown>

    React owner instance

    If the React owner instance could not be found