Update 02-displaying-data.md

Just a couple of minor grammatical fixes.
This commit is contained in:
Chitharanjan Das
2014-12-30 10:49:44 +00:00
parent f0f274c3b6
commit 1307460818

View File

@@ -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' },