Difference: 1. React drives html dom rendering; React Native drives android/ios native component rendering. 2. When writing react, you can get started directly with front-end knowledge. Although react native is also possible, it is difficult to go deeper without native knowledge support.
The operating environment of this article: windows10 system, react16, thinkpad t480 computer.
[Related tutorial recommendations: React video tutorial]
The difference between react native and react
The principles are slightly different:
The principles of React and React Native are the same. Both are virtual dom implemented by js to drive the rendering of the interface view layer. It's just that React drives html dom rendering; React Native drives android/ios native component rendering. In fact, before the launch of React Native, this technology of using js to drive native components of the app already existed, such as Native Script.
The programming ideas will be different:
react directly renders the dom, while react native generates the id, uses bridge (the latest implemented in c) to turn it into a table, waits for native to call, and writes React can be started directly with front-end knowledge. Although react native can also be used, it is difficult to go deeper without native knowledge support.
For more programming-related knowledge, please visit: Programming Teaching! !
The above is the detailed content of What is the difference between react native and react?. For more information, please follow other related articles on the PHP Chinese website!