Blog Logo
TAGS

Wouter: A Tiny Router for Modern React and Preact Apps

Wouter is a lightweight router that works with both React and Preact via hooks API. With only 1.36KB gzipped, its a fraction of the size of React Router. Wouter provides familiar components and mirroring the best practices of React Router such as Route, Link, Switch, and Redirect. Developers and library authors appreciate Wouters simple API. The router also supports a hook-based API with components for more granular control over routing. Million, React-three-fiber, Sunmao UI, and Ultra are some of the notable projects that utilize Wouter. The library is also compatible with Preact and has intuitive and barebones API.