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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: I am confused about ReactJS Native

2 点作者 yuashizuki超过 10 年前
I understand that ReacJS works natively and that there is no DOM. But isn&#x27;t it just that. A web view builds views from the html file, but react js builds it with native function calls and its own renderer. After all the over head of javascript still exists.<p>&gt;&gt; ReactJS native just replaces the DOM rendering part of webview with something else of its own.

2 条评论

evv超过 10 年前
React Native does not use a webview.<p>The overhead comes from a slow DOM and other browser cruft like over-complicated CSS. We&#x27;ve found that Javascript itself is actually quite fast.<p>We are no longer constrained by browser APIs. For example, we can access native device features, and we can also integrate other native components into React Native apps.
yuashizuki超过 10 年前
Basicaly its nothing but a new webview, offcourse with privilage api access.