在管理仪表板中选择 Next.js 13 的 AppRouter 还是纯 React

huangapple go评论82阅读模式
英文:

Choosing Between Next.js 13 AppRouter and pure React for Admin Dashboard

问题

使用Next.js 13的App路由器来编写管理仪表板是个好主意吗,还是应该使用纯React构建单页面应用程序?
Next.js似乎在较慢的连接上存在互动性方面的问题。哪个选项提供更好的性能和互动性?

我想知道您对使用Next.js 13与开发干净的React SPA用于管理仪表板的利弊以及在互动性方面的潜在优点、缺点和考虑有何看法?对于这个项目,SEO并不重要。

感谢您的见解。

英文:

Is it a good idea to use Next.js 13 App router for programming an admin dashboard, or should I build it as a single-page application using pure React?
Next.js seems to struggle with interactivity on slower connections. Which option offers better performance and interactivity?

I would like to know your opinion on the pros and cons of using Next.js 13 versus developing a clean React SPA for an admin dashboard. What are the potential benefits, drawbacks, and considerations in terms of interactivity? SEO is not important for this project.

Thank you for your insights

答案1

得分: 2

我建议使用 next.js 13

优点

  • 新的路由器使处理嵌套路由变得非常容易,如果一个请求失败,仪表板不会崩溃
  • 您将获得所有新的高级功能,如流式服务器端渲染等

您可以在它们的演示中查看所有功能这里

缺点

  • 相对较新,因此没有太多资源可用
  • 如果您正在使用像 MUI 这样的 UI 库,它们目前不支持服务器组件 阅读这里
英文:

I would suggest going for next.js 13

Pros

  • New router makes it so easy to handle nested routes and if one request fails the dashboard won't crash
  • You will get all the new fancy features like streaming ssr and more

You can see all the features in their demo Here

Cons

  • Relatively new so there aren't many resources out there
  • If you are using UI libraries like MUI they currently don't have support for server components Read Here

huangapple
  • 本文由 发表于 2023年5月26日 15:39:34
  • 转载请务必保留本文链接:https://go.coder-hub.com/76338642.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定