nowfound

Life & fun · March 21, 2019

Forget about React Router. Modern and clean routing with hooks

A quick experiment about using hooks for routing in a react app turned out to be very flexible and powerful.

Forget about React Router. Modern and clean routing with hooks launched on March 21, 2019 with 11 votes, #1,033 of 2,994 launches that month and more than 75% of that year's launches. The site was still online in September 2026, 7 years on.

In plain words

Hookrouter is an npm module that provides routing for React applications using hooks instead of traditional routing libraries. The core useRoutes() hook evaluates predefined routes and renders the appropriate components. It has zero dependencies and adds approximately 2.9kb to bundle size, making it a lightweight alternative for developers seeking a modern approach to client-side routing in React applications.

written from the facts on this page · September 2026

From the sources

A quick experiment about using hooks for routing in a react app turned out to be very flexible and powerful. I published the module hookrouter on npm for anyone to use. Let me introduce it to you in this article. Update: Version 1.2.1 has been released with lots of new features and detailed documentation . The router module is published on npm and can be installed by calling npm -i hookrouter . It has zero dependencies and adds about 2.9kb to your bundle . The module contains the hook function useRoutes() that evaluates your predefined routes and returns a result. There is also the function navigate(), which imperatively navigates your application to a new url. useRedirect() can be used to…from parastudios.de

Does a similar job

all alternatives →

More life & fun this month

the category →

Source: Show HN post ↗

Launched alongside, March 2019

the whole month →
  • AR

    Software and hardware projects for fun from a guy who loves retro computing

    Life & fun · 2019 · internalregister.github.io

  • A tool to make sure your brand colors are ADA compliant.

    Dev tools · 2019 · abc.useallfive.com

  • The best UI and UX practices for production ready design

    Work · 2019 · checklist.design

  • A virtual co-working space in your browser's new tab

    Work · 2019

  • Notions big update, now with Evernote import and web clipper

    Work · 2019 · notion.so

  • Voiceflow▲607

    Build voice apps in your browser without coding

    Dev tools · 2019 · voiceflow.com