Browse Source

fix HOC doc (#8802)

main
Superlaziness 8 years ago
committed by Dan Abramov
parent
commit
b2f388cd91
  1. 4
      docs/higher-order-components.md

4
docs/higher-order-components.md

@ -72,8 +72,8 @@ Later, you write a component for subscribing to a single blog post, which follow
```js ```js
class BlogPost extends React.Component { class BlogPost extends React.Component {
constructor() { constructor(props) {
super(); super(props);
this.handleChange = this.handleChange.bind(this); this.handleChange = this.handleChange.bind(this);
this.state = { this.state = {
blogPost: DataSource.getBlogPost(props.id) blogPost: DataSource.getBlogPost(props.id)

Loading…
Cancel
Save