zoukankan      html  css  js  c++  java
  • React于React native的渲染机制

    面向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

  • 相关阅读:
    设计模式学习笔记一
    linux学习记录(一)
    eclipse插件集合
    什么叫反向代理?
    shiro学习四
    shiro学习三
    shiro学习二
    第二次作业
    第一次作业
    自我介绍
  • 原文地址:https://www.cnblogs.com/feng9exe/p/11140081.html
Copyright © 2011-2022 走看看