JSPM

react-role-guard-pro

1.0.3
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 8
    • Score
      100M100P100Q42378F
    • License ISC

    Package Exports

    • react-role-guard-pro
    • react-role-guard-pro/dist/index.esm.js
    • react-role-guard-pro/dist/index.js

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-role-guard-pro) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    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