Learning React Native, Chapter 2: Working With React Native
How React Native Works?
React works with a virtual DOM. React computes the necessary changes in memory, and only refreshes the DOM when necessary. React Native works in a similar fashion. The virtual DOM is replaced with Native objects on the mobile platform. There is nothing special about Android, iOS, or the web. Those are the bridges that existed in React Native. People have written bridges for Linux, OSX, and Windows.Rendering Lifecycles
The page renders, components are mounted to the DOM, and then React Components are rendered. When a state or props changes, the difference is computed in the Virtual DOM, and React renders the new components.Creating Components in React Native
React Native components are largely the same as the React ComponentsWorking With Views
Instead of using HTML elements, you use platform specific components for React Native. The most basic
in HTML.
Comments
Post a Comment