Browse Source

Fix typos in “Mixins Considered Harmful” (#7275)

* Fix typos in “Mixins Considered Harmful”

* Use consistent code style
main
Dan Abramov 9 years ago
committed by GitHub
parent
commit
167fa71b5b
  1. 4
      _posts/2016-07-13-mixins-considered-harmful.md

4
_posts/2016-07-13-mixins-considered-harmful.md

@ -427,7 +427,7 @@ var UserRow = React.createClass({
return (
<div>
{this.renderHeader() /* Defined by RowMixin */}
<h2>{this.props.user.biography}
<h2>{this.props.user.biography}</h2>
</div>
)
}
@ -457,7 +457,7 @@ function UserRow(props) {
return (
<div>
<RowHeader text={props.user.fullName} />
<h2>{props.user.biography}
<h2>{props.user.biography}</h2>
</div>
);
}

Loading…
Cancel
Save