mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix typo in blog post
This commit is contained in:
committed by
Paul O’Shannessy
parent
d3d5b70896
commit
fcde2eb88b
@@ -44,7 +44,7 @@ var reactDivElement = div(props, children);
|
||||
|
||||
## Deprecated: Auto-generated Factories
|
||||
|
||||
Imagine if `React.createClass` was just a plain JavaScript class. If you call a class as a plain function you would call the component's constructor to create an Component instance, not a `ReactElement`:
|
||||
Imagine if `React.createClass` was just a plain JavaScript class. If you call a class as a plain function you would call the component's constructor to create a Component instance, not a `ReactElement`:
|
||||
|
||||
```javascript
|
||||
new MyComponent(); // Component, not ReactElement
|
||||
|
||||
Reference in New Issue
Block a user