Browse Source

Fix typo in blog post

main
Ben Alpert 10 years ago
parent
commit
5d4c39e20c
  1. 2
      _posts/2014-10-14-introducting-react-elements.md

2
_posts/2014-10-14-introducting-react-elements.md

@ -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

Loading…
Cancel
Save