@jmind.systems/react-role-controller
v0.0.4
Published
``` import { UserRole } from 'react-role-controller';
Readme
React-role-controller
Usage example
import { UserRole } from 'react-role-controller';
<UserRole roles={roles} currentRole={currentRole}>
{children}
</UserRole>
Docs
- Roles - array of roles (strings),
- CurrentRole - role (string),
- Children - array of React nodes
