react-role-guard-pro
v1.0.3
Published
A lightweight and flexible **role-based access control (RBAC)** package for React applications. Easily protect routes, pages, or components based on user roles and permissions — with zero configuration overhead.
Maintainers
Readme
🛡️ react-role-guard-pro
A lightweight and flexible role-based access control (RBAC) package for React applications.
Easily protect routes, pages, or components based on user roles and permissions — with zero configuration overhead.
🚀 Features
- ✅ Protect routes, components, or entire sections based on roles
- 🔐 Simple API for role-based conditional rendering
- ⚡ Works with React Router v6+
- 🧠 Supports dynamic roles (fetched from API, JWT, etc.)
- 💡 Lightweight & TypeScript-ready
📦 Installation
npm install react-role-guard-pro
