@iammouaz/only-one-tab
v2.8.0
Published
[![standard badge](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) [![npm](https://img.shields.io/npm/v/only-one-tab.svg)](https://www.npmjs.com/package/only-one-tab)
Downloads
3
Maintainers
Readme
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.