How to use react-detect-offline - 1 common examples

To help you get started, we’ve selected a few react-detect-offline examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github chrisbolin / react-detect-offline / packages / react-detect-offline-demo / src / App.tsx View on Github external
export default function App() {
  const online = useOnline();
  return (
    <div>
      <h1>online? {online ? "yes" : "NO"}</h1>
    </div>
  );
}

react-detect-offline

Offline and Online components for React

MIT
Latest version published 3 years ago

Package Health Score

57 / 100
Full package analysis

Popular react-detect-offline functions