More Descriptor -> Element renames

This commit is contained in:
Sebastian Markbage
2014-10-27 22:28:37 -07:00
committed by Paul O’Shannessy
parent 4202fcd9c5
commit 4e203db794
3 changed files with 13 additions and 21 deletions

View File

@@ -13,14 +13,14 @@ If you're using React components in a larger non-React application or transition
var myComponent = React.render(<MyComponent />, myContainer);
```
Keep in mind, however, that the "constructor" of a component doesn't return a component instance! It's just a **descriptor**: a lightweight representation that tells React what the mounted component should look like.
Keep in mind, however, that the JSX doesn't return a component instance! It's just a **ReactElement**: a lightweight representation that tells React what the mounted component should look like.
```js
var myComponent = <MyComponent />; // This is just a descriptor.
var myComponentElement = <MyComponent />; // This is just a ReactElement.
// Some code here...
myComponent = React.render(myComponent, myContainer);
var myComponentInstance = React.render(myComponentElement, myContainer);
```
> Note: