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.

React 19

307 pointsby gajus5 months ago

17 comments

robertwt75 months ago
Why do a lot of people here hate react so much? I started my eng career with Laravel and plain JS. After working with React, I&#x27;ve never seen anything like it. I feel like building scalable apps is achievable and front end is fun with it. Even when moving between different tech companies, working with React again is such a breeze and easy to pick up. On top of that, with the TS support, huge community libraries, I feel like I can build and scale anything quite easily. why are these new features &quot;scaring&quot; people away? we can still build with SPA or the old ways. I don&#x27;t think anyone complaints when NoSQL DB was released or when spring boot was released in 2014? what about when Kotlin was released? we don&#x27;t have to use them if you don&#x27;t want it.<p>Weren&#x27;t jetpack compose and swift UI inspired by React? I saw it somewhere in the android docs and now its probably deleted, I can&#x27;t find it anymore.<p>But then again, I don&#x27;t have &quot;decade&quot; of experience in tech, yet. I have no idea if building huge web apps (i.e airbnb) using jquery or plain js with large teams is as enjoyable back then? My thought process is changed, I can&#x27;t even think on how to solve the state management, dom manipulation, side effects etc with plain js anymore.<p>Nowadays I just built on what I&#x27;m familiar with and focus on what I want to build. who knows, maybe in the future I will also complaint about new frameworks and mention how good React was :)
评论 #42334993 未加载
评论 #42335564 未加载
评论 #42336243 未加载
评论 #42334779 未加载
评论 #42335635 未加载
评论 #42336279 未加载
评论 #42334843 未加载
评论 #42335137 未加载
评论 #42334670 未加载
评论 #42334980 未加载
评论 #42354552 未加载
评论 #42336731 未加载
评论 #42335119 未加载
评论 #42335576 未加载
评论 #42336399 未加载
评论 #42336480 未加载
评论 #42336138 未加载
评论 #42334906 未加载
评论 #42337533 未加载
评论 #42340476 未加载
评论 #42334642 未加载
demarq5 months ago
Awesome release.<p>I feel sorry though for someone getting into frontend dev now.<p>&gt; is a new hook to order Actions inside of a Transition with access to the state of the action, and the pending state. It accepts a reducer that can call Actions, and the initial state used for first render. It also accepts an optional string that is used if the action is passed to a form action prop to support progressive enhancement in forms.<p>I’m pretty sure it’s a cool feature but, what a mouthful. Imagine you decided to start developing websites today, how do you even start?<p>EDIT: React is still an exceptional framework and this release is certainly an improvement.<p>My criticism is more FE development in general not just React.
评论 #42331471 未加载
评论 #42333707 未加载
评论 #42332822 未加载
评论 #42331764 未加载
评论 #42333575 未加载
评论 #42331702 未加载
评论 #42335143 未加载
评论 #42331892 未加载
评论 #42332213 未加载
评论 #42334637 未加载
评论 #42331900 未加载
评论 #42331567 未加载
评论 #42332799 未加载
评论 #42339607 未加载
评论 #42335172 未加载
评论 #42331809 未加载
评论 #42340674 未加载
评论 #42333515 未加载
评论 #42333095 未加载
评论 #42338659 未加载
评论 #42333925 未加载
评论 #42335192 未加载
评论 #42340639 未加载
评论 #42332786 未加载
评论 #42331615 未加载
评论 #42334167 未加载
评论 #42334180 未加载
评论 #42334265 未加载
评论 #42332004 未加载
评论 #42332136 未加载
评论 #42333122 未加载
评论 #42332958 未加载
评论 #42331645 未加载
评论 #42335397 未加载
评论 #42332327 未加载
评论 #42334747 未加载
评论 #42333958 未加载
评论 #42331434 未加载
评论 #42333853 未加载
EternalFury5 months ago
Nothing new to what I am going to say and not strictly related to React 19.<p>I once loved client-side frameworks like React.<p>Then I realized: Great, we managed to add complexity wherever possible. In the backend, in the front-end, in the DevOps stack, EVERYWHERE. And more layers will be introduced to keep all that distributed complexity in sync.<p><i>sigh</i>
评论 #42333042 未加载
评论 #42333476 未加载
评论 #42333043 未加载
评论 #42333698 未加载
评论 #42333358 未加载
评论 #42333494 未加载
评论 #42333200 未加载
评论 #42333488 未加载
htunnicliff5 months ago
One of the best parts of this release:<p><pre><code> ref as a prop: Refs can now be used as props, removing the need for forwardRef.</code></pre>
评论 #42333933 未加载
评论 #42335814 未加载
cyral5 months ago
The blog post is an easier read: <a href="https:&#x2F;&#x2F;react.dev&#x2F;blog&#x2F;2024&#x2F;12&#x2F;05&#x2F;react-19" rel="nofollow">https:&#x2F;&#x2F;react.dev&#x2F;blog&#x2F;2024&#x2F;12&#x2F;05&#x2F;react-19</a>
评论 #42332083 未加载
pixelsort5 months ago
There are 45 comments so far and 7 references to &quot;redux&quot;. I&#x27;m just gonna rep for the Recoil clones here and mention Jotai, which likely already works with React 19 without any necessary changes.<p>With enough front-end complexity, other state managers get in the way more than should. So, to anyone who might be tempted to hate on React, but really has just grown weary of endless walls of action constants, or plumbing props, or fighting nested providers&#x2F;contexts, or resorting to pub-sub; give something like Jotai a shot.
评论 #42335490 未加载
评论 #42333820 未加载
评论 #42332357 未加载
评论 #42332351 未加载
评论 #42333409 未加载
评论 #42336546 未加载
gr4vityWall5 months ago
I don&#x27;t like most of the new features introduced. Actions, and the useActionState&#x2F;useOptimistic hooks seem like massive complexity pitfalls. The &#x27;use&#x27; hook has a very uninformative name. It doesn&#x27;t handle promises created inside the component. While I assume there are very good reasons for that, my impression is that passing promises as props and handling them with the use hook will create more complexity - more than current workarounds.<p>Server Components also look fairly complex, and I&#x27;m glad I haven&#x27;t had to deal with them so far.<p>The improved error messages on hydration errors are welcomed. The &lt;Context&gt; as a provider and ref as a prop changes are nice QoL changes.<p>Overall, I like React&#x2F;Preact as far as building SPAs go. Using it with a feature-rich component library (say, MUI) and a simple state management solution (like Preact Signals) makes it very straightforward to build SPAs, as far as I&#x27;m concerned. But I worry about the complexity creep. The descriptions for the new hooks in those release notes put a massive cognitive load on me just by reading them.<p>The React Compiler, on the other hand, is a much needed tool. It should result in components that are less complex, as the programmer won&#x27;t have to write typical optimizations by hand, as part of the component itself. I&#x27;m looking forward to its release and eventual integrations with Vite and etc. From what I heard, Preact will support it too.
tuan5 months ago
I wish they rename &quot;use&quot; API to something else other than the common prefix for hooks. I imagine someone new to React hooks might be confused when they see that `use` can be called conditionally, while hooks can&#x27;t.
ENGNR5 months ago
Really glad they delayed the release to (hopefully) solve the parallel suspense issue. Haven’t tried it yet but high hopes, and great release overall.
评论 #42333883 未加载
评论 #42335547 未加载
wg05 months ago
Breaking news - full support for custom elements. Web components that is.
jmull5 months ago
Does react use semantic versioning?<p>I’d hate to have to deal with incompatible versions at the rate they release major versions.<p>If you try to stick with one version do you soon get stuck because you need to take a bug fix or security fix that’s only available in a later major release (but updating breaks other things)?<p>I want to build software on a stable platform so I can spend time on improving the software or writing something new, not keeping up with updates.
评论 #42333163 未加载
评论 #42333035 未加载
blastonico5 months ago
I see people complaining a lot about React, why is it? What are the alternatives?<p>PS: I&#x27;m not a frontend engineer but I find this topic interesting.<p>Thanks!
评论 #42332784 未加载
评论 #42333835 未加载
评论 #42332026 未加载
评论 #42333314 未加载
评论 #42333361 未加载
评论 #42333159 未加载
评论 #42333261 未加载
评论 #42331933 未加载
评论 #42333217 未加载
uhoh-itsmaciek5 months ago
Great to see this--there are some nice features that encourage using standard web technologies like forms, and some solid quality of life improvements.<p>However, I&#x27;m disappointed (but not surprised, this was listed as out of scope for 19) that triggering Suspense is still basically &quot;use a framework that supports it.&quot; I have not been able to find any documentation or blog posts about the mechanism. I&#x27;ve tried to figure out how it works by looking at TanStack Query, but I&#x27;ve had limited success so far. I&#x27;ve found they&#x27;re copying React&#x27;s twist on Promises [1], but I haven&#x27;t gotten this to work yet.<p>I know the general idea is you throw Promises, but Suspense explicitly forbids using promises created during rendering. This means you can&#x27;t just interrupt the component&#x27;s initial render to load some data, and then restart it when its data is available. This means the component needs to deal with null data somehow, instead of, e.g., being able to call a custom `useSomeData` hook and rely on it to first suspend and then return the loaded data. Not having to deal directly with loading states in individual components could simplify things quite a bit.<p>Has anyone explored this side of Suspense?<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;TanStack&#x2F;query&#x2F;blob&#x2F;main&#x2F;packages&#x2F;query-core&#x2F;src&#x2F;thenable.ts">https:&#x2F;&#x2F;github.com&#x2F;TanStack&#x2F;query&#x2F;blob&#x2F;main&#x2F;packages&#x2F;query-c...</a>
评论 #42333383 未加载
riffic5 months ago
here&#x27;s what really matters: <a href="https:&#x2F;&#x2F;endoflife.date&#x2F;react" rel="nofollow">https:&#x2F;&#x2F;endoflife.date&#x2F;react</a>
评论 #42332165 未加载
评论 #42332103 未加载
评论 #42331616 未加载
tuan5 months ago
Is it possible to build useActionState hook based on existing built-in hooks ? If yes, why does that hook have to be built in ?
评论 #42337125 未加载
rkwz5 months ago
Curious, has anyone tried to use React without bundler like webpack, esbuild etc?
preommr5 months ago
Updates like this are exactly why React sucks.<p>If you&#x27;re going to add something to the main project, it should be well-designed, clear, and in good taste. React won over things like Angular because the latter had poorly designed abstractions. It was supposed to be &quot;just javascript&quot; (which was always more of a vibe being actually true).<p>Just look at wtf actions are. In their blogpost[0], the old way of doing things is only a few lines more, but is much clearer. The &#x27;useTransition&#x27; still has to update the error state - but at least it saves you from typing the pending state!<p>But of course, you&#x27;re not supposed to use this directly, you&#x27;re supposed to use useActionState. And this blog post makes it&#x27;s usage very clear by just returning null to show something that&#x27;s supposed to update state. So very clear, and intuitive &#x2F;s<p>Stuff like this really should&#x27;ve been in a separate library. It baffles my mind that core behavior like state management is left to external solutions, but then random crap like this makes it into the main project.<p>[0]<a href="https:&#x2F;&#x2F;react.dev&#x2F;blog&#x2F;2024&#x2F;12&#x2F;05&#x2F;react-19#actions" rel="nofollow">https:&#x2F;&#x2F;react.dev&#x2F;blog&#x2F;2024&#x2F;12&#x2F;05&#x2F;react-19#actions</a>
评论 #42334430 未加载
评论 #42334293 未加载