React Navigator Online
Hi, this package easy to use navigator online. Thanks to this package, you can check internet connection to something or to show popup about internet connection etc.
Note : I used React Hooks.
Demo
now Try right now! on netlify.
Hello to everyone!
Demo Image
Installation
npm install react-navigator-online
yarn add react-navigator-online
Example
; // i want to show it with toastify. ; ; Component { superprops; thisstate = message_online: "now! you have an internet connection." message_ofline: "now! you have no internet connection." ; } { if status toast else toast } { return <div> <center> <h1>Hello to everyone!</h1> <h3>We will try react-navigator-online package</h3> <h3>@Author : Ali Yaman</h3> </center> <ToastContainer position="bottom-left" autoClose=5000 hideProgressBar=false newestOnTop=false closeOnClick rtl=false pauseOnVisibilityChange draggable pauseOnHover onClose= /> /* we can get status this onChange function like this. */ <NavigatorOnline onChange= this /> </div> ; } ;