react-simplest-router
simplest router for React (by ldd)
page.js
Micro client-side router inspired by the Express router (by visionmedia)
Our great sponsors
react-simplest-router | page.js | |
---|---|---|
1 | 4 | |
1 | 7,654 | |
- | 0.2% | |
10.0 | 0.0 | |
almost 4 years ago | 9 months ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
react-simplest-router
Posts with mentions or reviews of react-simplest-router.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-05-13.
-
Show HN: React Routing in 120 lines (including comments)
making React small libraries like these is fun.
I made one myself that was absolutely the simplest I could go for[0]
page.js
Posts with mentions or reviews of page.js.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-05-13.
-
Show HN: React Routing in 120 lines (including comments)
I've used a lot of routers and my favorite is still page.js[1]. It hasn't been updated in years. But it's small, is Express-compatible (i.e. server/client routes can use the same code), and, more importantly, is hackable. I'll never use a router tied to a certain framework again (react, nextjs, etc.) because you trade flexibility for perceived convenience (e.g. using folder structure as route structure, or React component tree as route structure). But it's a terrible trade-off that paints you into a corner later, IMO. Routing can get really niche and site-dependent, so having it fully under your control is worth it.
-
[AskJS] Are there any framework agnostic routing libraries that are well supported?
I've used Page.js for a couple of SPA projects. It was last updated a couple of years ago. The documentation isn't the best, but the client-side router does its job.
What are some alternatives?
When comparing react-simplest-router and page.js you can also consider the following projects:
director - a tiny and isomorphic URL router for JavaScript
crossroads - JavaScript Routes
pathjs - Simple, lightweight routing for web browsers
frontexpress - An Express.js-Style router for the front-end
navaid - A navigation aid (aka, router) for the browser in 850 bytes~!
SPApp - Single Page Application micro framework. Views, routes and controllers in 60 lines of code
davis.js - RESTful degradable JavaScript routing using pushState
interfy - A Javascript library for robust web front-end routing.
navigo - A simple vanilla JavaScript router.
react-snippets - A sample of useful snippets in React
universal-router - Universal routing both for backend and frontend