NextJS13
Using re-use-online in nextjs is quite similar to how you'd import it in Normal React, but just some few changes.
Installation
Install the package using npm or yarn
or
Usage
Import the useOnlineStatus
hook into your Next server component, then convert it into a client component by using the command use client
on top of your code, with this you can use it to check the online status of the users depending on how you'd want it.
This version supports TypeScript.
Last updated