Skip to content

filipdanic/use-connection

Repository files navigation

NPM

use-connection

A custom React hook that lets you know if the client is online as well as network information such as downlink and type if it is supported by the browser.

Start with:

npm install --save use-connection

And in your component just use the hook as:

const data = useConnection();

Docs

The complete documentation as well as a live demo is available here.

License

MIT © filipdanic

About

A custom React hook that returns network status and information.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published