revert id adding

This commit is contained in:
Nat Alison
2019-02-06 17:58:33 -08:00
parent 49e5ca68fe
commit dc1e5366e3
209 changed files with 1814 additions and 1814 deletions

View File

@@ -22,7 +22,7 @@ Unlike browser DOM elements, React elements are plain objects, and are cheap to
>
>One might confuse elements with a more widely known concept of "components". We will introduce components in the [next section](/docs/components-and-props.html). Elements are what components are "made of", and we encourage you to read this section before jumping ahead.
## Rendering an Element into the DOM {#rendering-an-element-into-the-dom}
## Rendering an Element into the DOM
Let's say there is a `<div>` somewhere in your HTML file:
@@ -42,7 +42,7 @@ To render a React element into a root DOM node, pass both to `ReactDOM.render()`
It displays "Hello, world" on the page.
## Updating the Rendered Element {#updating-the-rendered-element}
## Updating the Rendered Element
React elements are [immutable](https://en.wikipedia.org/wiki/Immutable_object). Once you create an element, you can't change its children or attributes. An element is like a single frame in a movie: it represents the UI at a certain point in time.
@@ -62,7 +62,7 @@ It calls `ReactDOM.render()` every second from a [`setInterval()`](https://devel
>
>We recommend that you don't skip topics because they build on each other.
## React Only Updates What's Necessary {#react-only-updates-whats-necessary}
## React Only Updates What's Necessary
React DOM compares the element and its children to the previous one, and only applies the DOM updates necessary to bring the DOM to the desired state.