A lightweight, modern, and powerful React routing library
npm install 07-navegation-router
import { Router, Route, Link } from '07-navegation-router';
function App() {
return (
<Router>
<Route path="/" Component={Home} />
<Route path="/about" Component={About} />
<Route path="/users/:id" Component={UserProfile} />
</Router>
);
}
function Home() {
return (
<div>
<h1>Home Page</h1>
<Link to="/about">Go to About</Link>
</div>
);
}
Define routes with intuitive Router, Route, and Link components
Support for route parameters using path-to-regexp
Code-split your routes for optimal performance
Full support for browser back/forward navigation
Built-in support for default/fallback routes
Comprehensive test coverage with Vitest
Minimal bundle size with zero unnecessary dependencies
Full TypeScript definitions included
Built-in error handling for robust applications
Contributions are welcome! Please read our contributing guidelines.