
This library provides a minimalist routing solution for modern React and Preact applications, weighing in at only ~2.2KB gzipped. By embracing a hook-based architecture, it eliminates the need for heavy top-level providers, allowing for a cleaner and more flexible codebase. It is designed to be a lightweight alternative to larger routing libraries while maintaining a familiar API.
Key benefits include:
useRoute, useLocation, and useParams.Route, Switch, and Link) and direct hook usage for custom implementations.Whether you are building a small project or a complex application, this router provides the essential tools for navigation without the overhead. It supports advanced features like nested routing, server-side rendering (SSR), and custom location hooks, ensuring it can scale with your project's requirements.