Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ldavidsp committed Jul 8, 2022
1 parent 01ab5a3 commit c1d288d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ setPermissions([
## Aplicar el permiso

```
import {Can} from 'react-permission-lib'
<Can permission={'user.show'}>
// content
</Can>
Expand All @@ -43,6 +45,8 @@ setPermissions([
## Aplicar el permiso a la ruta

```
import {Middleware} from 'react-permission-lib'
<Route path="/" element={
<Middleware permission={'user.show'}>
<App/>
Expand Down

0 comments on commit c1d288d

Please sign in to comment.