In Chapter 1, Understanding why React Native is the future of mobile apps, I've mentioned that React Native came from ReactJS and that the ability of React to use Virtual DOM is one of the main features that led to the creation of the React Native framework. Let's recap the concept of Virtual DOM. Virtual DOM means storing DOM nodes or components inside JavaScript instead of accessing the real DOM.
In React Native, we don't have DOM. Also, our app components structure may look similar to HTML syntax, but that is due to JSX.
Let's look at an example. When we set up our environment and created our first application, there were two files that I've mentioned:
index.ios.js
index.android.js
Open the file relevant to the environment that you plan to develop. Basically both files will look the same, so...