mirror of
https://github.com/facebook/react.git
synced 2026-02-26 01:25:00 +00:00
fix HOC doc (#8802)
This commit is contained in:
committed by
Dan Abramov
parent
c77632791f
commit
66540fdf16
@@ -72,8 +72,8 @@ Later, you write a component for subscribing to a single blog post, which follow
|
||||
|
||||
```js
|
||||
class BlogPost extends React.Component {
|
||||
constructor() {
|
||||
super();
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.handleChange = this.handleChange.bind(this);
|
||||
this.state = {
|
||||
blogPost: DataSource.getBlogPost(props.id)
|
||||
|
||||
Reference in New Issue
Block a user