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 v18.0

489 pointsby pspeter3about 3 years ago

24 comments

acemarkeabout 3 years ago
Awesome! Glad this is finally out, and really looking forward to seeing what features the React team adds in follow-up releases.<p>The Working Group model really helped us in the community give feedback - APIs like `useSyncExternalStore` wouldn&#x27;t have happened otherwise, and I really appreciate the responsiveness on that topic.<p>FWIW, React-Redux v8 is in beta right now:<p>- <a href="https:&#x2F;&#x2F;github.com&#x2F;reduxjs&#x2F;react-redux&#x2F;releases" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;reduxjs&#x2F;react-redux&#x2F;releases</a><p>I think it&#x27;s basically ready to go, but I haven&#x27;t had a chance to really test out the SSR support I added a couple months ago. I&#x27;d love to have some help testing that out.<p>v7 will _run_ with React 18, but v8 has been specifically reworked to behave correctly when used with React&#x27;s new &quot;Concurrent Rendering&quot; capabilities. We&#x27;ve also converted React-Redux itself to TS (no more separate types package).<p>Ideally, I&#x27;d like to release v8 as final in the next week or two.
评论 #30848236 未加载
评论 #30848755 未加载
评论 #30846923 未加载
nikiviabout 3 years ago
I wish React removed all the compatibility code it has with Internet Explorer and the likes and worked on minimising the weight. Also the synthetic events reactivity system seems a bit outdated.<p><a href="https:&#x2F;&#x2F;www.solidjs.com" rel="nofollow">https:&#x2F;&#x2F;www.solidjs.com</a> is quite awesome but lacks the React ecosystem.
评论 #30845790 未加载
评论 #30845387 未加载
评论 #30845899 未加载
评论 #30845041 未加载
评论 #30846133 未加载
评论 #30844737 未加载
评论 #30844711 未加载
评论 #30844720 未加载
yewenjieabout 3 years ago
React is not only introducing layers and layers of abstractions&#x2F; concepts that are hard to grasp for a newcomer, they are also reclaiming well-established terms.<p>&gt; A transition is a new concept in React to distinguish between urgent and non-urgent updates.<p>&gt; Urgent updates reflect direct interaction, like typing, clicking, pressing, and so on. &gt; Transition updates transition the UI from one view to another.
评论 #30846205 未加载
评论 #30848328 未加载
评论 #30846127 未加载
评论 #30846596 未加载
评论 #30846280 未加载
评论 #30846257 未加载
评论 #30846512 未加载
nealsabout 3 years ago
Fun fact: I started building a couple React apps 5 years ago. Apps still run, but since they&#x27;re class based component and don&#x27;t use hooks, the apps feel like ancient. They run perfectly fine though. New guys don&#x27;t really want to work on in though. Hooray for progress.
评论 #30847339 未加载
评论 #30846939 未加载
评论 #30850377 未加载
评论 #30848466 未加载
评论 #30846310 未加载
评论 #30846332 未加载
danabramovabout 3 years ago
We&#x27;ve also posted a tweet thread breaking down the main features, so please check it out if you enjoy that format! <a href="https:&#x2F;&#x2F;twitter.com&#x2F;reactjs&#x2F;status&#x2F;1508838714180612100" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;reactjs&#x2F;status&#x2F;1508838714180612100</a>
评论 #30846573 未加载
Stoidsabout 3 years ago
Congratulations to the React team on the release! I&#x27;ve kept up somewhat with the development of these features since Dan first introduced some of the ideas at JSConf 3 years ago. It&#x27;s interesting to see how the APIs have changed over time—I&#x27;m sure as a result of some tough lessons learned at Facebook.<p>As someone who has worked on large React projects worked on by multiple teams, I can see a lot of the value proposition being delivered in this release. I can already think of many places where I&#x27;ll want to slot in the transition API.<p>I&#x27;m curious if the SuspenseList API is making the cut here or if it&#x27;s still on the roadmap? I played with it a while back and thought it was very cool, albeit slightly niche perhaps.<p>The only part that&#x27;s a bit of a bummer is the recommendation on using suspense for data fetching. I&#x27;m already itching to get rid of lots of if (loading) {} code that plagues many of our components and makes orchestration and re-use of them a bit more painful than we&#x27;d like. I see lots of power in the idea of suspense as a way to orchestrate various generic async operations, but it feels like they don&#x27;t want us to build solutions on this abstraction unless we buy into some opinionated framework. I can&#x27;t really tell my team &quot;let&#x27;s use remix now lol&quot;.<p>All that being said this is a tremendous step forward and I&#x27;m looking forward to seeing what problems the React team tackles next.
评论 #30847491 未加载
评论 #30847396 未加载
评论 #30847319 未加载
nojvekabout 3 years ago
I wonder how concurrent mode in React stacks up with Solid.js. It seems React has been adding more and more features + complexity, while other frameworks are re-thinking the approach from the ground up building a simpler and faster primitive, yet keeping the same jsx primitives.
tunesmithabout 3 years ago
We&#x27;ve heard rumblings that react18 implies the need for major changes in legacy projects. For instance, jest testing suites apparently need to move away from enzyme?<p>Also, is there something about MUI and react18 that makes styled-components more of a pain? Not sure where I heard that.
评论 #30845392 未加载
评论 #30845061 未加载
评论 #30845839 未加载
herrkaninabout 3 years ago
Congratulations to the React team! I remember three years ago when Dan first showcased some of the concurrent features [1], so this has been quite long in the making.<p>[1] <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=nLF0n9SACd4" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=nLF0n9SACd4</a>
rock_hardabout 3 years ago
Amazing news…congrats to the React team!<p>We have been running the RC in prod since January and it’s been super smooth<p>Concurrent mode makes react apps much, much faster and snappier…huge win for perf!
paxysabout 3 years ago
Exciting to see so much server-side focus in all recent development. IMO React has massive value outside of the usual static site or SPA making API calls use cases. Eagerly waiting for Server Components to get ready.
评论 #30845235 未加载
ihumanabout 3 years ago
When is the Suspense documentation going to be updated? I don&#x27;t see it in the beta docs, and the main documentation page is for v17, so its still marked as experimental. It also says that, &quot;Before React 18 is released, we will replace this page with stable documentation.&quot;
jerrygoyalabout 3 years ago
I was really hoping that they would have internal implementation by now to automatically infer the missing dependencies array for hooks so we need not rely on an external linting tool. This is one of the most common issues faced by react devs.
评论 #30847619 未加载
lefrenchyabout 3 years ago
Really excited about the transitions (edit: I mean batching) for state updates. I always found it so frustrating that updating 3 different state values in a callback would cause 3 separate renders.
评论 #30844973 未加载
journey_16162about 3 years ago
If you have a list of elements rendered in a container (from array), does React always re-render the whole thing (contents of container) when adding &#x2F; removing elements from the array or is there a way to work around that? I&#x27;m coming from Svelte, I would not be learning React if it was not for its omni-presence in the job market and I&#x27;m genuinely curious.
评论 #30846922 未加载
评论 #30846825 未加载
评论 #30846871 未加载
I_am_tiberiusabout 3 years ago
I hope backwards compatibility is good. A release candidate of React 18 I tried has caused installation issues in combination with dnd-kit utilities.
评论 #30846273 未加载
aleksjessabout 3 years ago
@danabramov would you mind sharing the rationale behind making the ReactWG invite only? I understand that, de jure, it&#x27;s Facebook&#x27;s property, and you all can do whatever you want with it. De facto, since so many people on the outside world contributed to the project, at least an election of a commission would have been warranted. Would you mind commenting?
bitwidgetabout 3 years ago
I&#x27;m most excited about the suspense feature since handling load was always a bit of extra code when it pretty common among most apps.
trasplerabout 3 years ago
The Transitions look nice but I feel like this will bloat code incredibly. Maybe it‘s meant only as an optimisation to be used sparingly but if I would always have to also start a transition when I do some conditional rendering it will generate a lot of overhead code. Or am I wrong?
评论 #30845833 未加载
pier25about 3 years ago
I wonder how it will compare to v17 on the JS benchmarks.<p><a href="https:&#x2F;&#x2F;krausest.github.io&#x2F;js-framework-benchmark&#x2F;current.html" rel="nofollow">https:&#x2F;&#x2F;krausest.github.io&#x2F;js-framework-benchmark&#x2F;current.ht...</a>
maxfurmanabout 3 years ago
Yet again, another React major version, more churn in the ecosystem. Are all of the libraries your app depends on compatible with the new version? How much effort to update the ones that aren&#x27;t, if that&#x27;s even possible? Get ready to spend tens of your team&#x27;s man-hours answering these questions.
评论 #30847062 未加载
评论 #30846975 未加载
评论 #30848441 未加载
评论 #30849156 未加载
wetpawsabout 3 years ago
Starting from the introduction of hooks all react updates have been going backward.<p>The biggest benefit of react for me always been it&#x27;s brutal conceptual simplicity. It&#x27;s been a reliable tool and now it turned into the monster.
评论 #30847683 未加载
评论 #30850773 未加载
评论 #30854449 未加载
StopDarkPatternabout 3 years ago
&quot;The most important addition in React 18 is something we hope you never have to think about: concurrency.&quot; - really? this is what our technical prowess has come to?
评论 #30850292 未加载
ddaalluu2about 3 years ago
Congratulations, but to me React is like Rust. Something I always wanted to get into but found better alternatives. In the react case Vue wins for me and in the Rust case it&#x27;s Go.<p>I really tried, time and time again to like it and write something with it, but Vue just offers the better libraries. Altough with the recent 2 to 3 upgrade and pinia instead of vuex I&#x27;m starting to get dissatisfied with the &quot;no single proper way&quot; of Vue. Vuex-orm being the best frontend REST wired ORM, nothing comes close to ease of use and setup. Meanwhile react has what? Complicated redux, or is that even a thing anymore? Idk, which I would. Redux the boilerplate abomination. That&#x27;s exactly what drove me away from Angular. But I&#x27;m starting to rant again. And react has even more of the &quot;not a single proper way&quot;. Yeah I know, nextjs the magic bullet, but what if you don&#x27;t agree with pretty much everything about it, starting with routing.
评论 #30847677 未加载
评论 #30846913 未加载
评论 #30845914 未加载
评论 #30850467 未加载
评论 #30845838 未加载