react-network-status-ts
Version:
React hook and component to detect and display online/offline network status.
18 lines (12 loc) • 1.07 kB
Markdown
# react-network-status-ts
[](https://www.npmjs.com/package/react-network-status-ts)
[](https://www.npmjs.com/package/react-network-status-ts)
[](https://github.com/mithilesh-shah/react-network-status-ts/blob/main/LICENSE)
[](https://github.com/mithilesh-shah/react-network-status-ts/stargazers)
[](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
```