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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Why I Won’t Use Next.js

24 点作者 nirga大约 2 个月前

5 条评论

bryanrasmussen大约 2 个月前
The original title is Why I won't use NextJs, I agree it sucks but normally one should not editorialize the title on HN.
评论 #43448935 未加载
CharlieDigital大约 2 个月前
<p><pre><code> &gt; I guess you could say this is a point in favor of Next.js because at least they’re reaping the benefits of closer collaboration with React. But in my experience, a team not being collaborative is a bad sign for their software. </code></pre> There is something actually kind of unique about React&#x27;s fundamental design at this point that separates it from every other major framework: it kind of &quot;inverts&quot; the model of reactivity[0] that we typically encounter in UI applications (not just web frameworks, here). I first came across this thought after reading Arek Nawo&#x27;s[0] comparison of React Hooks to Vue Composition.<p>It seems to me that this is actually a big source of the issues with React from the complicated state management libraries and models to the need to double render in strict mode (to flush out where developers have put state incorrectly).<p>I bring this up because in Feb 2023 -- two plus years ago -- a Tweet caught my attention at the time. Andrew Clark had posted (2023FEB18):<p><pre><code> &gt; We might add a signals-like primitive to React but I don’t think it’s a great way to write UI code. It’s great for performance. But I prefer React’s model where you pretend the whole thing is recreated every time. Our plan is to use a compiler to achieve comparable performance. </code></pre> There&#x27;s an acknowledgement that <i>&quot;yeah, it&#x27;s great for performance, but we don&#x27;t care&quot;</i>. Now, two years later, the compiler is still in beta and there&#x27;s no evidence that it actually improved performance at all. There&#x27;s just a certain arrogance from this team that makes it very hard to root for.<p>[0] <a href="https:&#x2F;&#x2F;chrlschn.dev&#x2F;blog&#x2F;2025&#x2F;01&#x2F;the-inverted-reactivity-model-of-react" rel="nofollow">https:&#x2F;&#x2F;chrlschn.dev&#x2F;blog&#x2F;2025&#x2F;01&#x2F;the-inverted-reactivity-mo...</a><p>[1] <a href="https:&#x2F;&#x2F;areknawo.com&#x2F;vue-composition-api-vs-react-hooks-the-core-difference&#x2F;" rel="nofollow">https:&#x2F;&#x2F;areknawo.com&#x2F;vue-composition-api-vs-react-hooks-the-...</a>
chrismsimpson大约 2 个月前
I am very new to Next.js. I came across it first two years ago in a Vercel setup and it was it was a mess. I now attribute that to the code base rather than either Vercel or Next.js itself.<p>Fast forward to ~9 months ago. I joined a company that self hosts Next.js in GCP (Cloud Run). The set up is so effortless I’ve actually started building a new side project completely with it. I come from C#&#x2F;Swift ecosystems.<p>This is to say, my anecdotal experience has been extremely good. Next.js is an amazing framework and has been the catalyst for me retooling my whole career into the TypeScript&#x2F;JavaScript world after resisting for many years.
medhir大约 2 个月前
Lots of discussion recently around how Next.js is “hard to deploy” without Vercel and don’t quite understand.<p>I’ve been using Next deployed to a container for years without issue — what are the major challenges here?
评论 #43448931 未加载
评论 #43450246 未加载
upmostly大约 2 个月前
Great article. I 100% agree with the &quot;too much magic&quot; section.<p>I mean, have you ever tried to self-host Next? Good luck!<p>We managed to get it working when building Hypership, but it took my co-founder a long time to figure out and then the fantastic work of the devs at OpenNext in order to get it working.<p><a href="https:&#x2F;&#x2F;hypership.dev" rel="nofollow">https:&#x2F;&#x2F;hypership.dev</a>