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 tutorial: windows7 system, react16, Dell G3 computer.
React Native: iOS and Android native apps can be developed based on the currently popular open source JavaScript library React.js. And React Native is already used in production environments - the Facebook Groups iOS app is developed based on it.
React is an open source JavaScript library that provides views of data rendered into HTML. React views are typically rendered using components that contain other components specified in custom HTML tags. React provides programmers with a model in which child components cannot directly affect outer components, efficient updates to HTML documents when data changes, and clean separation between components in modern single-page applications.
[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 Video! !
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!