mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #2514 from jvalente/patch-1
Update ref-09-glossary.md
This commit is contained in:
committed by
Paul O’Shannessy
parent
8dc8b0fd44
commit
7dd33967b6
@@ -21,7 +21,7 @@ You can create one of these object through `React.createElement`.
|
||||
var root = React.createElement('div');
|
||||
```
|
||||
|
||||
To render a new tree into the DOM, you create `ReactElement`s and pass them to `React.render` a long with a regular DOM `Element` (`HTMLElement` or `SVGElement`). `ReactElement`s are not to be confused with DOM `Element`s. A `ReactElement` is a light, stateless, immutable, virtual representation of a DOM `Element`. It is a virtual DOM.
|
||||
To render a new tree into the DOM, you create `ReactElement`s and pass them to `React.render` along with a regular DOM `Element` (`HTMLElement` or `SVGElement`). `ReactElement`s are not to be confused with DOM `Element`s. A `ReactElement` is a light, stateless, immutable, virtual representation of a DOM `Element`. It is a virtual DOM.
|
||||
|
||||
```javascript
|
||||
React.render(root, document.body);
|
||||
|
||||
Reference in New Issue
Block a user