How to use the @casl/react.createCanBoundTo function in @casl/react

To help you get started, we’ve selected a few @casl/react examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github stalniy / casl-react-example / src / components / Can.js View on Github external
import { createCanBoundTo } from '@casl/react';
import ability from '../config/ability';

export default createCanBoundTo(ability);

@casl/react

React component for CASL which makes it easy to add permissions in any React application

MIT
Latest version published 6 months ago

Package Health Score

81 / 100
Full package analysis

Popular @casl/react functions