2.8.0 • Published 1 year ago
@iammouaz/only-one-tab v2.8.0
React Only One Tab
Prevent react app to open in multiple tabs at the same time.
Install
npm i @iammouaz/only-one-tab
Usage
import OnlyOneTab from '@iammouaz/only-one-tab'
and Wrap the App or the route with it
<OnlyOneTab>
<App />
</OnlyOneTab>
Props
You can Pass Massage="This is the error text"
as String or as JSX Elements Massage={<ErrorMassge />}
to the provider
🤝 Contributing
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Show your support
Give a ⭐️ if you like this project!
📝 License
This project is MIT licensed.