A hook to detect the online/offline status of the browser.
- None
- A boolean indicating if the browser is online.
import useOnlineStatus from "./useOnlineStatus"
export default function OnlineStatusComponent() {
const online = useOnlineStatus()
return <div>{online.toString()}</div>
}