From 66540fdf1641d9a408dcbc6de665a0ea4db39dfb Mon Sep 17 00:00:00 2001 From: Superlaziness Date: Mon, 16 Jan 2017 17:49:01 +0300 Subject: [PATCH] fix HOC doc (#8802) --- docs/docs/higher-order-components.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/higher-order-components.md b/docs/docs/higher-order-components.md index 0ccac35d07..e441cc531e 100644 --- a/docs/docs/higher-order-components.md +++ b/docs/docs/higher-order-components.md @@ -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)