Merge pull request #2514 from jvalente/patch-1

Update ref-09-glossary.md
This commit is contained in:
Cheng Lou
2014-11-13 13:45:35 -05:00
committed by Paul O’Shannessy
parent 8dc8b0fd44
commit 7dd33967b6
+1 -1
View File
@@ -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);