码迷,mamicode.com
首页 > 其他好文 > 详细

React于React native的渲染机制

时间:2019-07-05 19:32:19      阅读:239      评论:0      收藏:0      [点我收藏+]

标签:sam   output   tin   media   bsp   for   状态   view   dia   

面向virtual DOM编程 vs 面向native componet编程;

 

状态编程引起的UI变化会全部提交到native compnent然后走平台原来的渲染流程。

 

The DOM is just one of the rendering environments React can render to,

the other major targets being native iOS and Android views via React Native. (This is why "virtual DOM" is a bit of a misnomer.)

 

ReactJS outputs the DOM that can be rendered the browsers. As you already know, the virtual DOM helps ReactJS efficiently keeps track of the delta of what has changed. For React Native for iOS, ultimately it outputs UIKit code. Same thing with React Native for Android, but instead of outputting DOM or UI Kit, the output is created using Android SDKs. So virtual DOM is just an intermediate step.

 

https://stackoverflow.com/questions/41804855/does-react-native-have-a-virtual-dom

React于React native的渲染机制

标签:sam   output   tin   media   bsp   for   状态   view   dia   

原文地址:https://www.cnblogs.com/feng9exe/p/11140081.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!