use-navigator-online (npm): React Hooks to detect when your browser is online/offline.
Keywords: navigator|window.navigator|react|react-hooks|navigator-online|offline