Home > Article > Web Front-end > Learning react.js
This time I will bring you the learning of react.js. What are the precautions for learning react.js? Here are the practical cases, let’s take a look.
React is essentially a state machine that can help developers manage complex states that change over time. It achieves this with a streamlined model, react only cares about two things:
Updating the DOM, responding to events
react does not handle ajax,routing And data storage, it does not stipulate the way of data organization. It is not an MVC. If you have to say what it is, you can call it V. It can be used to render views in several MVC frameworks.
React is like a game engine, based on rendering functions that read in the current state and convert it into a virtual representation on the target page. Whenever React is notified of a change in state, it will rerun these functions and calculate a new virtual representation.
Note that it is a state change rather than dirty data detection like angular.
React only uses a single event handler in the entire application, and will delegate all events to this processor, which also improves the performance of react.
I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the php Chinese website!
Recommended reading:
The above is the detailed content of Learning react.js. For more information, please follow other related articles on the PHP Chinese website!