Minimalistic Routing For React – wouter

Category: Featured , Others , React | April 30, 2019
Author: molefrog
Views Total: 151
Official Page: Go to website
Last Update: April 30, 2019
License: MIT

A tiny routing solution for modern React apps that relies on Hooks.

Features:

  • Zero dependency, only 1.04KB gzipped vs 17KB React Router.
  • A top-level <Router /> component is fully optional.
  • Mimics React Router’s best practices, however the library isn’t a drop-in replacement.
  • Out of the box only supports History API, customization is possible via a <Router /> component.

Installation:

# NPM
$ npm install wouter --save

Preview:

Minimalistic Routing For React - wouter