RE

React Easy Router

react-easy-router

The simplest way to add routing to your React app

Routing
react
routing
router
react-router
react-router-dom
simple-routing
next
react-easy-router
javascript
npm
Stars
14
Weekly
5.9M
Open issues
3
Bundle
~15 kB

Installation

npm install react-easy-router

Code example

import { BrowserRouter, Routes, Route, Link } from "react-easy-router";

export function Example() {
  return (
    <BrowserRouter>
      <nav>
        <Link to="/">Home</Link>
      </nav>
      <Routes>
        <Route path="/" element={<h1>Home</h1>} />
      </Routes>
    </BrowserRouter>
  );
}

Pros & cons

Pros

  • Actively maintained by Yousuf Kalim
  • 5.9M weekly downloads. Battle tested
  • First-class TypeScript definitions
  • MIT licensed

Considerations

  • Adds roughly ~15 kB to your bundle
  • Not supported in React Native
  • 3 open issues on GitHub

FAQs

Alternatives & similar libraries