Function RenderWhenVisible

A React component that renders its children only when they become visible in the viewport.

  • Parameters

    • props: PropsWithChildren<
          { children: Element; minHeight?: number; onLoad?: () => void },
      >
    • Optionalcontext: any

    Returns ReactElement<any, any>

    A JSX element that conditionally renders its children based on visibility.

Properties

contextTypes?: ValidationMap<any>
defaultProps?: Partial<
    { children: Element; minHeight?: number; onLoad?: () => void },
>
displayName?: string
propTypes?: WeakValidationMap<
    { children: Element; minHeight?: number; onLoad?: () => void },
>