0.0.4 • Published 4 years ago
@jmind.systems/react-role-controller v0.0.4
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