React to React native rendering mechanism

Vs oriented programming virtual DOM native componet oriented programming;

 

UI change in the state program will be fully committed to the cause of native compnent then take the platform of the original rendering process.

 

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

Guess you like

Origin www.cnblogs.com/feng9exe/p/11140081.html