mirror of
https://github.com/hanzoai/react.git
synced 2026-09-24 17:02:27 +00:00
fix HOC doc (#8802)
This commit is contained in:
committed by
Dan Abramov
parent
b87e20c999
commit
ffb39103cc
@@ -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