Skip to content

useNetwork ​

Category
Sensors

Hook to track network status

typescript
import { useNetwork } from '@siberiacancode/reactuse';

Usage ​

typescript
const { online, downlink, downlinkMax, effectiveType, rtt, saveData, type } = useNetwork();

Demo ​

Api ​

Contributors ​

Source • Demo