# react-isonline-hook

> It is a react hook that tells you that the user is online or not anc continuosly tracks it.

Latest version **1.0.4** (published 2019-11-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-isonline-hook
pnpm add react-isonline-hook
yarn add react-isonline-hook
bun add react-isonline-hook
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2019-11-02 |
| First published | 2019-11-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Shivyan |
| Maintainers | shivyan |

## Links

- npm: https://www.npmjs.com/package/react-isonline-hook
- Repository: https://github.com/Shivvyyy/react-isonline-hook
- Homepage: https://github.com/Shivvyyy/react-isonline-hook#readme
- Issues: https://github.com/Shivvyyy/react-isonline-hook/issues
- npm.io page: https://npm.io/package/react-isonline-hook

## Recent versions

- 1.0.4 (latest) — 2019-11-02
- 1.0.3 — 2019-11-01
- 1.0.2 — 2019-11-01
- 1.0.1 — 2019-11-01
- 1.0.0 — 2019-11-01

## README

# Project

This react hooks tracks that user is online or offline. You can directly use in your function component and can get the online status of user in boolean form.

## Getting Started

```js
const StatusIndicator = () => {
  const isOnline = useNavigatorOnLine();

  return <span>You are {isOnline ? 'online' : 'offline'}.</span>;
};

ReactDOM.render(<StatusIndicator />, document.getElementById('root'));
```

### Prerequisites

Works with React 16.8.0 and above.

### Installing

\$ npm install react-isonline-hook --save

## Versioning

1.0.0

## Authors

Shivyan

## License

MIT

```

```

---
_Source: https://npm.io/package/react-isonline-hook · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
