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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Why is react js adopted so well in such a short span?

1 点作者 sriram_iyengar将近 8 年前

3 条评论

stevefan1999将近 8 年前
Because it enables legacy code be reused in a&#x2F;an good&#x2F;expressive manner.<p>You just need to re-plug your legacy HTML+jQuery into render() and some functions in either React.createClass(to which is deprecated FYI), or React.Component (ES6 class extend).<p>Plus React features a very fast and tiny virtual DOM implementation making 60fps experience possible.<p>You can also do code separation by using ES6 modules system combining with Babel&#x2F;Webpack so you can separate your CSS and images into somewhere else, this provides a better division and transparency of tasks and more or less benefited the software industries.<p>I mean Angular2 and Vue can do code separation too, but those two already came later than React.
UK-AL将近 8 年前
It actually makes front-end developer feel like &#x27;proper&#x27; software development again. Previously it felt like strapping together a bunch of jquery scripts.
zurn将近 8 年前
Because people like functional programming?