@iammouaz/only-one-tab
TypeScript icon, indicating that this package has built-in type declarations

2.8.0 • Public • Published

React Only One Tab

standard badge npm

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.

Package Sidebar

Install

npm i @iammouaz/only-one-tab

Weekly Downloads

1

Version

2.8.0

License

MIT

Unpacked Size

12.6 kB

Total Files

12

Last publish

Collaborators

  • iammouaz