mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
Merge pull request #3511 from AnSavvides/glossary-space
Minor space change to be in line with coding style everywhere else
This commit is contained in:
@@ -49,7 +49,7 @@ __Factories__
|
||||
A `ReactElement`-factory is simply a function that generates a `ReactElement` with a particular `type` property. React has a built-in helper for you to create factories. It's effectively just:
|
||||
|
||||
```javascript
|
||||
function createFactory(type){
|
||||
function createFactory(type) {
|
||||
return React.createElement.bind(null, type);
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user