Add top-level API docs for React.createFactory.

This commit is contained in:
Aaron Franks committed 2014-12-08 07:54:13 -08:00
1 parent 09cfe453b8
commit 93ce334368
1 file changed
+13
+13
View File
@@ -37,6 +37,19 @@ html tag name string (eg. 'div', 'span', etc), or a `ReactComponent` class that
with `React.createClass`.
### React.createFactory
```javascript
factoryFunction createFactory(
string/ReactComponent type
)
```
Return a function that produces ReactElements of a given type. Like `React.createElement`,
the type argument can be either an html tag name string (eg. 'div', 'span', etc), or a
`ReactComponent` class that was created with `React.createClass`.
### React.render
```javascript