mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #2785 from c-das/patch-1
Update 02-displaying-data.md
This commit is contained in:
@@ -108,7 +108,7 @@ var root = React.createElement('ul', { className: 'my-list' }, child);
|
||||
React.render(root, document.body);
|
||||
```
|
||||
|
||||
As a convenience you can create short-hand factory function to create elements from custom components.
|
||||
As a convenience you can create short-hand factory functions to create elements from custom components.
|
||||
|
||||
```javascript
|
||||
var Factory = React.createFactory(ComponentClass);
|
||||
@@ -117,7 +117,7 @@ var root = Factory({ custom: 'prop' });
|
||||
React.render(root, document.body);
|
||||
```
|
||||
|
||||
React already have built-in factories for common HTML tags:
|
||||
React already has built-in factories for common HTML tags:
|
||||
|
||||
```javascript
|
||||
var root = React.DOM.ul({ className: 'my-list' },
|
||||
|
||||
Reference in New Issue
Block a user