Open History to see the last commit
Before you commit to a new tool, it's always nice to know how it stacks up against the competition!
This comparison table strives to be as accurate and as unbiased as possible. If you use any of these libraries and feel the information could be improved, feel free to suggest changes (with notes or evidence of claims) using the "Edit this page on Github" link at the bottom of this page.
Feature/Capability Key:
- β 1st-class, built-in, and ready to use with no added configuration or code
- π’ Full Support as an official plugin or addon package
- π‘ Partial Support
- πΆ Possible, but requires custom code/implementation
- π Not officially supported
| React Location | React Router DOM (Website) | |
|---|---|---|
| Github Repo / Stars | ||
| Their Comparison | (none) | |
| Bundle Size | ||
| - | ||
| General | ||
| Nested / Layout Routes | β | β |
| Path Params | β | β |
| JSX Routes | π’ react-location-elements-to-routes | β |
| Code-Splitting | β | β |
| Ranked Routes | π’ react-location-ranked-routes | β |
| Active Link Customization | β | β |
| SSR | π | β |
| Route Mount/Transition/Unmount Events | β | π |
| Official Devtools | π’ react-location-devtools | π |
| Search Params | ||
| Basic Search Params | β | β |
| Search Param Hooks | β | β |
Integrated <Link/> search param API | β | π‘ (search-string only via the to prop) |
Integrated useNavigate search param API | β | π‘ (search-string only via the search property) |
| JSON Search Params | β | πΆ |
| Search Param Stabilization (Structural Sharing) | β | πΆ |
| Custom Search Param parsing/serialization | β | πΆ |
| Queued/Batched Search Param Updates | β | π |
| Search-Based Route Matching | β | π‘ (string/Regex only?) |
| Search Param Compression | π’ react-location-jsurl | πΆ |
| Async Routing, Loaders & Data | ||
| Route Loaders & Data (parallelized and blocking) | β | π |
| Basic Route Data Caching | β | π |
| Route Loader Prefetching | β | π |
| External Caching Interface | β | π |
| Route Error Elements | β | π |
| Route Pending Elements | β | π |
| Pending Timing (delay, min-show) | β | π |