What is it
A JavaScript library for building user interfaces
Ii. Developers
Developed by Facebook and open source
Three, why to learn
- Native JavaScript manipulation of the DOM is cumbersome and inefficient (DOM-API manipulation of UI).
- Using JavaScript to manipulate the DOM directly, the browser does a lot of redrawing and rearranging.
- Native JavaScript has no componentized coding scheme and low code reuse rate.
4. React
- Componentized mode and declarative coding are adopted to improve development efficiency and component reuse rate.
- React Native allows you to use the React syntax for mobile development.
- Use virtual DOM+ excellent Diffing algorithm to minimize interaction with real DOM.
An 🌰 :
- Native JavaScript data changes manipulate the real DOM, and data updates are completely redrawn
- The React virtual DOM will compare and render only the parts that are different
Learn the basics of JavaScript before React
- Judge the direction of this
- Class (class)
- ES6 syntax specification
- NPM package manager
- Prototype, prototype chain
- Common methods for arrays
- modular