1.0.3 • Published 1 year ago

online-checker v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

online-checker

A custom react hook to track if the browser goes offline. This hook simply returns true or false of the current browsers online status. This is very useful if we want to render a view depending on browsers online status.

How to use

  • npm install

You can now import online-checker like so:

import useOnLineChecker from 'online-checker'
...
**Notice this is a default export**
...
Then use that inside script just like a normal React hook
...
const isOnLine = useOnLineChecker(); //returns true or false
1.0.3

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago