connection-status
v1.0.2
Published
Checks if internet connnection is offline or online and returns a object
Downloads
8
Readme
connection-status NPM package
Developed For react developers to use it for SPAs for offline and online routes
Installation
npm install connection-status
Usage
const { useOnline } = require('connection-status');
const isOnline = useOnline();
if(!isOnline){
//your offline route
}
Support
For support, contact on Discord username : nightmare_fuel. or Email : [email protected]