• Returns the current network status and re-renders the component if it changes.

    Returns NetworkStatus