Creating Reliable Web Apps: Checking User Connectivity with React Hook