Skip to content

jmind-systems/react-role-controller

Repository files navigation

React-role-controller

Usage example

import { UserRole } from 'react-role-controller';

<UserRole roles={roles} currentRole={currentRole}>
  {children}
</UserRole>

Docs

  1. Roles - array of roles (strings),
  2. CurrentRole - role (string),
  3. Children - array of React nodes

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published