TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Next.js 8 released

241 pointsby keybitsover 6 years ago

12 comments

martpieover 6 years ago
Next.js is an awesome framework, but dynamic routing is still a mess, and clean URL masking [0] is unnecessary complicated: you have to add a route handler to Express.js, and you have to use 2 different props to your &lt;Link&gt; components to make it work.<p>The Next team explains it because they don&#x27;t want to solve this problem by shipping a definition of all the route of the app [1] because it does not scale. But while it is true, it makes dynamic routes extremely painful to use. Hopefully it will be fixed soon.<p>Another thing not mentioned in the blog post is they started to rewrite the core of Next.js in TypeScript too, which is a big move!<p><pre><code> [0] https:&#x2F;&#x2F;nextjs.org&#x2F;learn&#x2F;basics&#x2F;clean-urls-with-route-masking [1] https:&#x2F;&#x2F;github.com&#x2F;zeit&#x2F;next.js&#x2F;issues&#x2F;4989#issuecomment-442024894</code></pre>
评论 #19133352 未加载
评论 #19135877 未加载
评论 #19133633 未加载
评论 #19135938 未加载
评论 #19135683 未加载
midwayover 6 years ago
What I don&#x27;t get: Either you go full SPA <i>or</i> SSR. And If you go for latter then you can choose any stack, e.g. Rails, express with pug, Django, PHP, etc. Why do people take React&#x27;s constraints to the backend? No bashing, really wondering what&#x27;s so much better then. I know why a React SPA can be better than a SSR. But what is better about a React SSR vs the typical SSR?
评论 #19133587 未加载
评论 #19133535 未加载
评论 #19135873 未加载
评论 #19136055 未加载
评论 #19136315 未加载
评论 #19135448 未加载
评论 #19135690 未加载
评论 #19138720 未加载
评论 #19133588 未加载
评论 #19133517 未加载
评论 #19133546 未加载
jypepinover 6 years ago
I&#x27;ve been using Next.js for a fairly big e-commerce project for a client, and I have to say it&#x27;s great.<p>The framework itself makes working with a React, universal rendering app much easier than other solutions I&#x27;ve worked with. It&#x27;s doing a great job at starting very small while at the same time extending for your needs is pretty easy for most things (such as build configs, custom server, etc).<p>The community is growing and very helpful too.<p>I&#x27;m very glad to see it continue to move so fast and definitely already see it as a very strong option and probably becoming the de-facto solution for JS apps, just how Rails or Django are to Ruby and Python.<p>Thanks to the team for the great work :)<p>edit: typos
评论 #19133203 未加载
评论 #19133283 未加载
fredleyover 6 years ago
Holy crap, these pages load fast. Honestly the best possible advertisement for a javascript framework at the moment is how quickly the page paints. For me it was virtually instantaneous. Bravo.
评论 #19133393 未加载
评论 #19133777 未加载
midwayover 6 years ago
Interesting read from Dec 2018 [1] about Next.js:<p><i>SSR throughput of your server is significantly less than CSR throughput. For react in particular, the throughput impact is extremely large. ReactDOMServer.renderToString is a synchronous CPU bound call, which holds the event loop, which means the server will not be able to process any other request till ReactDOMServer.renderToString completes.<p>[...]<p>Using Pre-Rendered CRA addresses both the SEO and performance concerns around using CRA without the complexity that Next.js introduces</i><p>[1] <a href="https:&#x2F;&#x2F;codeburst.io&#x2F;next-js-ssr-vs-create-react-app-csr-7452f71599f6" rel="nofollow">https:&#x2F;&#x2F;codeburst.io&#x2F;next-js-ssr-vs-create-react-app-csr-745...</a>
评论 #19136826 未加载
kowdermeisterover 6 years ago
Here&#x27;s the PR to Webpack:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;webpack&#x2F;webpack&#x2F;pull&#x2F;8609" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;webpack&#x2F;webpack&#x2F;pull&#x2F;8609</a>
seddinover 6 years ago
@zeit employees are some really talented developers
jackweirdyover 6 years ago
Interested to see serverless as part of a web framework. My understanding was AWS Lambda and similar platforms were best for asynchronous workloads, but for web stuff the cold start could be too long for things to feel snappy. Has that changed recently?
评论 #19133758 未加载
proyb2over 6 years ago
One concern on mobile where I find the scrolling is not respond for a second or longer whenever I swipe back to previous page in Safari, applicable in some of the showcases in Next.js too, is it the expected user experience?
评论 #19136353 未加载
seddinover 6 years ago
If you are going to use it as a static site generator, you should also try Hugo + the Mainroad theme, generated files are super light and easy to style as you wish.
andreareinaover 6 years ago
So the tutorial requires me to login with github? Sorry, not gonna happen.
评论 #19134017 未加载
评论 #19134542 未加载
评论 #19135810 未加载
gtycombover 6 years ago
How similar is this with Nuxt.js?
评论 #19134866 未加载