UNPKG

react-network-status-ts

Version:

React hook and component to detect and display online/offline network status.

18 lines (12 loc) 1.07 kB
# react-network-status-ts [![npm version](https://img.shields.io/npm/v/react-network-status-ts.svg?style=flat-square)](https://www.npmjs.com/package/react-network-status-ts) [![npm downloads](https://img.shields.io/npm/dw/react-network-status-ts?style=flat-square)](https://www.npmjs.com/package/react-network-status-ts) [![MIT License](https://img.shields.io/npm/l/react-network-status-ts?style=flat-square)](https://github.com/mithilesh-shah/react-network-status-ts/blob/main/LICENSE) [![GitHub stars](https://img.shields.io/github/stars/mithilesh-shah/react-network-status-ts?style=flat-square)](https://github.com/mithilesh-shah/react-network-status-ts/stargazers) [![TypeScript](https://img.shields.io/badge/TS-TypeScript-blue?style=flat-square&logo=typescript)](https://www.typescriptlang.org/) A lightweight React hook and component to detect and display **online/offline** network status. Useful for enhancing UX by notifying users when they lose or regain internet connectivity. --- ## 🚀 Installation ```bash npm install react-network-status-ts ```