Skip to content

shivyan-javascript-engineer/react-isonline-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

return You are {isOnline ? "online" : "offline"}.; };

ReactDOM.render(, 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

ISC

About

React hook for tracking user is online or offline.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published