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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

“If you use React, you should be using a React framework.”

24 点作者 romellem超过 2 年前

15 条评论

spiffytech超过 2 年前
For another point of view, the Solid.js author prefers advocating for better modular tooling (like Vite) rather than comprehensive monolithic frameworks.<p><a href="https:&#x2F;&#x2F;twitter.com&#x2F;RyanCarniato&#x2F;status&#x2F;1617623647803539456" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;RyanCarniato&#x2F;status&#x2F;1617623647803539456</a><p>It appears he considers SolidStart to be a concession to the current ecosystem reality, rather than the idealized version of how things should be done.
vagrantJin超过 2 年前
I suspect that OP is indirectly if not casually admitting that react core is bad or terrible DX. Can we discuss technicalities of our decisions and not just shill react frameworks?<p>That thread is just a niagra of nonsense. The most impressive thing is how much OP mentions the most obvious things with such great profundity. &quot;Gib ssr, gib routing...&quot; thanks man. We can&#x27;t read docs or landing pages it seems.
评论 #34507185 未加载
评论 #34543367 未加载
PaulHoule超过 2 年前
A lot depends on the complexity of your application.<p>There are some simple React applications where you can keep the state near the top of the application and let it percolate into the components via props. (Like my app for controlling my smart speakers.) In a case like that framework can be part of the problem as much as a solution.<p>When you&#x27;ve got complex state all over the place and an update to component A&#x27;s data can cause component B and C to update and particularly if the app is dynamic so you don&#x27;t know when you&#x27;re writing it exactly what will cause what to update than you <i>really</i> need a framework.
评论 #34506907 未加载
jayd16超过 2 年前
Is there any real content here? Its just &quot;they&#x27;re better&quot; half a dozen times?
评论 #34506895 未加载
citrusx超过 2 年前
Personally, I can&#x27;t go with this advice. We&#x27;re on 2.5 years rolling our own, and it&#x27;s been really clear that we made the right choice in not going with next.js, which was the only such framework at the time.<p>Given that the remix author complete broke react-router for our use case (to the point where we can&#x27;t upgrade to v6), I wouldn&#x27;t trust that remix could meet our needs, either.<p>(There is a temptation to fork react-router v5 and maintain it independently. But, we&#x27;re good just pinning the version for now.)
评论 #34522444 未加载
nuc1e0n超过 2 年前
But React is a framework, itself built upon HTML, CSS and JavaScript. Recommending to use a framework on top of a framework is madness. If React doesn&#x27;t do what&#x27;s needed, just make another new framework instead.
评论 #34509681 未加载
SpeedilyDamage超过 2 年前
I don&#x27;t know a ton about Andrew Clark; I&#x27;ve gathered he&#x27;s an author of React, but what is his experience using React to actually build frontends?
ramesh31超过 2 年前
Nah. The beauty of React is in how small and focused it has remained. This leaves developer choice to add (or not) as much complexity as your app needs. Framework lock-in is the nightmare route that Angular went down, and Next.js in particular is a bloated mess I wouldn&#x27;t touch with a ten foot pole. The promise of these frameworks is to solve every problem for you, but the reality is that each one is half-way solved poorly.<p>What works best for JS is the &quot;meta&quot; framework approach. That is, collections of really well done libraries that solve one single problem extremely well and play together nicely without any actual knowledge of each other.
评论 #34507261 未加载
评论 #34512608 未加载
Kiro超过 2 年前
Can someone tell me exactly why I would need Next.js? SSR seems pointless for most apps and routing is trivial with react-router. What am I missing?
评论 #34508741 未加载
评论 #34511331 未加载
评论 #34507101 未加载
yamtaddle超过 2 年前
I&#x27;m having a hard time understanding why. You need like 3 or 4 libraries to have a pretty featureful experience with React (routing lib, some kind of HTTP client library most likely, state <i>if</i> you don&#x27;t want to do that in React proper... probably some kind of form library unless React has stopped sucking at that since last time I used it) and one of those is React itself. You can add more if you want but you probably don&#x27;t need them. <i>When</i> one of those libraries falls out of favor and goes stale, it&#x27;s easier to replace one of them than to migrate to a new framework.<p>There&#x27;s just not enough to <i>do</i> on the client-side to justify a framework. The browser handles so much already.
评论 #34507215 未加载
rcme超过 2 年前
The React framework has a framework called framework?
评论 #34506561 未加载
评论 #34506782 未加载
评论 #34506576 未加载
cassidoo超过 2 年前
I feel like this is very much a political tweet more than a technical one, there&#x27;s incredibly valid cases (as seen throughout this thread) for not using a framework, and it&#x27;s a pretty broad generalization to make.
renewiltord超过 2 年前
I just use vanilla React and Redux, but mostly for lack of knowledge. What would people recommend for:<p>- chrome extension<p>- simple app that is a small step above Retool&#x2F;AppSmith
jpace121超过 2 年前
Are there frameworks people recommend that don’t require JavaScript on the backend?
drcongo超过 2 年前
I maintain that React is the single worst thing to happen to front end development. Certainly for the poor end user.
评论 #34507142 未加载
评论 #34506761 未加载
评论 #34506922 未加载