πŸš€ Navigation Router

A lightweight, modern, and powerful React routing library

npm version npm downloads license
Get Started View on GitHub

Installation

npm install 07-navegation-router

Quick Start

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>
  );
}
5.3KB
Bundle Size
28
Tests Passing
100%
TypeScript Support

✨ Features

🎯 Declarative Routing

Define routes with intuitive Router, Route, and Link components

πŸ”— Dynamic Parameters

Support for route parameters using path-to-regexp

⚑ Lazy Loading

Code-split your routes for optimal performance

πŸ”„ Browser History

Full support for browser back/forward navigation

🎨 404 Handling

Built-in support for default/fallback routes

πŸ§ͺ Well Tested

Comprehensive test coverage with Vitest

πŸ“¦ Lightweight

Minimal bundle size with zero unnecessary dependencies

πŸ”§ TypeScript Ready

Full TypeScript definitions included

⚠️ Error Boundaries

Built-in error handling for robust applications

πŸ“– Documentation

πŸ“š Full Documentation

Read the docs β†’

πŸ’‘ Examples

View examples β†’

πŸ“Š Benchmarks

Performance tests β†’

🀝 Contributing

Contributions are welcome! Please read our contributing guidelines.