@samitouri / QOS-React-2 / commits / 66540fdf16

fix HOC doc (#8802)

Superlaziness committed Jan 16, 2017 at 17:49 UTC 66540fdf1641d9a408dcbc6de665a0ea4db39dfb
1 file changed +2 -2
docs/docs/higher-order-components.md
+2 -2
@@ -72,8 +72,8 @@ Later, you write a component for subscribing to a single blog post, which follow
72
73 ```js
74 class BlogPost extends React.Component {
75 - constructor() {
76 - super();
75 + constructor(props) {
76 + super(props);
77 this.handleChange = this.handleChange.bind(this);
78 this.state = {
79 blogPost: DataSource.getBlogPost(props.id)