React 社区面临分裂:全栈与仅客户端两大阵营并存

在软件开发领域,技术社区的分裂往往标志着不同的技术路线和理念的碰撞。最近,React 社区也出现了这样的分裂迹象,形成了全栈和仅客户端两大阵营。这一现象在最新的“React 现状”调查中得到了体现,调查显示尽管一些开发人员积极采用 React 的服务器组件等新特性,但仍有许多人坚持使用传统单页应用程序(SPA)。

调查的结论预测,到2028年,React将有两个广泛使用的版本并存,一个是带有服务器组件和服务器动作的“全栈”版本,另一个则是仅限客户端的单页应用程序版本。这一预测基于对13,000名开发者的调查,其中29%的人表示使用过服务器组件,并且超过一半的人希望再次使用它们。

同时,63%的受访者表示使用了服务端渲染(SSR),但仍有37%的人从未使用过SSR。相比之下,86%的用户将React用于单页应用程序,只有27%的用户用于多页应用程序。

在React的应用托管方面,Vercel成为首选,其次是AWS、GitHub Pages和Netlify。这一结果可能反映了社区中一些人的看法,而非所有React用户的意见。

此外,调查还显示了React的主要痛点,包括API的复杂性、钩子的使用等,但最受挑战的特性包括fowardRef、memo和useEffect。

最后,大多数开发人员继续使用webpack进行构建,其次是Vite、esbuild和Rollup。而Turbopack作为webpack的替代品,只有29%的受访者使用过。

这些发现表明,React社区正面临着技术路线和应用场景的多样化选择,同时也反映了开发者对新技术和旧工具的适应和偏好。随着技术的不断发展,React社区将如何融合这些不同的趋势和需求,值得我们继续关注。

英语如下:

News Title: “React Community Divides: Full-Stack vs. Single-Page Application Campuses Clash”

Keywords: React community division, full-stack versus SPA debate, survey predicts future trends

News Content:
The React community faces division: two major camps emerge for full-stack and single-page applications

In the realm of software development, the division within technical communities often signifies a collision of different technical paths and ideologies. Recently, the React community has also shown signs of such division, with the emergence of two major camps: full-stack and single-page application (SPA) enthusiasts. This phenomenon is reflected in the latest “State of React” survey, which reveals that despite some developers enthusiastically adopting new features such as server components in React, many still cling to the traditional single-page application model.

The survey’s conclusions predict that by 2028, there will be two widely used versions of React coexisting: one with server components and server actions, and another as a single-page application version exclusively for the client. This prediction is based on a survey of 13,000 developers, with 29% reporting having used server components, and over half expressing a desire to use them again.

Additionally, 63% of respondents have used server-side rendering (SSR), but 37% have never used SSR. In contrast, 86% of users employ React for single-page applications, with only 27% using it for multi-page applications.

Regarding the hosting of React applications, Vercel has emerged as the preferred choice, followed by AWS, GitHub Pages, and Netlify. This result may reflect the views of some community members rather than those of all React users.

Furthermore, the survey highlighted the main pain points in React, including the complexity of APIs and the use of hooks, but the most challenging features included forwardRef, memo, and useEffect.

Lastly, the majority of developers continue to use webpack for their builds, followed by Vite, esbuild, and Rollup. While Turbopack, as a replacement for webpack, has been used by only 29% of respondents.

These findings indicate that the React community is facing a diversification in technical pathways and application scenarios, reflecting developers’ adaptation and preferences for both new technologies and old tools. As technology continues to evolve, it will be worth watching how the React community integrates these various trends and demands.

【来源】https://mp.weixin.qq.com/s/cHGl2CvRzfxm8eGQ3xz3cA

Views: 1

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注