mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
Add top-level API docs for React.createFactory.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user