Function PingView

PingView component for checking online status using a ping function. Renders children when online, displays offline component when offline.

  • Type Parameters

    • P extends unknown = object

      Type parameter for the payload object passed to the ping function

    Parameters

    • props: IPingViewProps<P>

      The component props

    Returns null | Element

    • The rendered component or null if initialization is in progress