<! DOCTYPE html>
Ref instance, note that by reference not the DOM node itself, it is said that we do not operate between the DOM, such as setting the text, so it is not possible, we have only a virtual DOM node, that is, react display to our DOM node, If you want to get a real DOM node, you also need to call a method, which we will say later, but react does not encourage us to do so, unless in special cases, we need to manipulate the DOM node, other situations react will help us to operate,
This example is not complete, we will continue to explain later.
<! DOCTYPE html>
Key instance: Note that within each component, the value of key must be different, note the inside of the component! There is no such limit between the two components.
Remember two points: 1, Content-similar components as far as possible merge is called the same component, 2 list type elements, must add a unique key, to achieve these two points, you can avoid many performance problems.
<! DOCTYPE html>