How to check if app is open in another tab for Reactjs App

I’m creating a react app, and I want the user won’t be able to open the app in another tab if the app already opened it in another tab. something like WhatsApp https://imgur.com/a/wugEAha.

Is there any way to detect if the app already opens in another tab?

31 thoughts on “How to check if app is open in another tab for Reactjs App”

Leave a Comment