Skip to content

ldavidsp/react-permission

Repository files navigation

React permission

Pruebas de como aplicar permisos a nuestro proyecto de react.

Desarrollo

yarn install
yarn dev

Aplicar el permiso

<Can permission={36}>
 // children
</CanYou>

Aplicar el permiso a la ruta

<Route path="/" element={
  <PrivateRoute permission={3}>
     <App/>
  </PrivateRoute>
}/>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published