Skip to content

Commit 4f1a896

Browse files
holly1238gaearon
authored andcommitted
minor editorial updates (#2)
1 parent 846ba31 commit 4f1a896

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

beta/src/content/apis/react/createFactory.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ title: createFactory
44

55
<Intro>
66

7-
`createFactory` lets you create a function that creates React element of a given `type`. The `type` argument can be either a tag name string (such as `div` or `span`), a React component type (a class or a function), or a React fragment type.
7+
`createFactory` lets you create a function that creates a React element of a given `type`. The `type` argument can be either a tag name string (such as `div` or `span`), a React component type (a class or a function), or a React fragment type.
88

9-
You may typically invoke createFactory, if you are using [React without JSX].(https://beta.reactjs.org/learn/add-react-to-a-website#run-the-jsx-preprocessor)
9+
`createFactory` is typically invoked if you are using [React without JSX.](https://beta.reactjs.org/learn/add-react-to-a-website#run-the-jsx-preprocessor)
1010

1111
```js
1212
React.createFactory(type)
@@ -60,7 +60,7 @@ render(<App />, document.getElementById('root'));
6060

6161
### `createFactory(type)` {/*createFactory*/}
6262

63-
Call `createFactory(type)` to create a function that creates React element of a given `type`.
63+
Call `createFactory(type)` to create a function that creates a React element of a given `type`.
6464

6565
```js
6666
const myElement= React.createFactory(type)
@@ -73,4 +73,4 @@ const myElement= React.createFactory(type)
7373

7474
#### Returns {/*returns*/}
7575

76-
Returns a function that can be used to create React element of the given `type`.
76+
Returns a function that can be used to create a React element of the given `type`.

0 commit comments

Comments
 (0)