Home > Web Front-end > JS Tutorial > body text

Learning react.js

php中世界最好的语言
Release: 2018-03-12 17:52:08
Original
1457 people have browsed it

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:

A question about scope in JS

Angular’s ​​novice tutorial

The above is the detailed content of Learning react.js. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template