TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Forget about React Router. Modern and clean routing with hooks

11 点作者 chris_engel大约 6 年前

8 条评论

chopraapooja大约 6 年前
Looks very neat, Though I felt uncomfortable with spreading of routes-information through the component tree if I have to look for which routes matches, I need to traverse through the component tree, It will be useful if there is some utility like rails routes.
mcktimo大约 6 年前
After about the 4th version of react-router I had had enough. I have been using navigo which is pretty similar to what you have here. I shall try hookrouter. Thanks
chris_engel大约 6 年前
Author here - comments and feedback is highly welcome! :)
评论 #19486985 未加载
评论 #19485276 未加载
评论 #19459342 未加载
评论 #19467143 未加载
ml242大约 6 年前
I dig the simplicity, i would give it a try with a small project.
jacobwsmith大约 6 年前
I like it! It reminds me of the approach React Native Navigation uses with explicitly declaring things up front.
mwilliaams大约 6 年前
This looks great! I'm going to try it in my current project.
评论 #19486979 未加载
arseniy111大约 6 年前
how it use with hash?
arseniy111大约 6 年前
does not work with TS