0.0.8 • Published 1 year ago
router-connect v0.0.8
router-connect
router-connect is a alternative to react-route-dom but it isn't a replace to react-route-dom
install
npm install router-connect
or
pnpm add router-connect
add Routes
We can add our routes nex way
or classic way
guard
router-connect you can add your project routes with parameter guard that it receive a function should return a value boolena
404 page
router-connect has a 404 page by default, but you can change that page with th propriety NotFound from ProviderRoutes
Link component
we can use the Link component for change of routes or pages
Navigation
this function help us to do the navigation bewteen routes
not use the buttom element for to do the navigation