Skip to content

useOnline ​

Category
Sensors

Hook that manages if the user is online

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

Usage ​

typescript
const online = useOnline();

Demo ​

Api ​

Returns

boolean

Contributors ​

Source • Demo