A React Hooks package for online
npm install @rooks/use-online```
npm install rooks
or
``
yarn add rooks
Rooks is completely treeshakeable and if you use only 1 of the 50+ hooks in the package, only that hook will be bundled with your code. Your bundle will only contain the hooks that you need. Cheers!
!Build Status   
``
npm install --save @rooks/use-online
`javascript`
import useOnline from "@rooks/use-online";
` Online status - {isOnline.toString()}jsx
function Demo() {
const isOnline = useOnline();
return
}
render(
``
Offline status (boolean) is returned.