Skip to content

Commit

Permalink
Merge pull request #457 from wyze/prop-types-doc
Browse files Browse the repository at this point in the history
Fix stateless function example in prop-types documentation
  • Loading branch information
yannickcr committed Feb 21, 2016
2 parents 3b56239 + 151cb76 commit b898fcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/rules/prop-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var Hello = React.createClass({
});

function Hello({ name }) {
return <div>Hello {this.props.name}</div>;
return <div>Hello {name}</div>;
}
```

Expand Down Expand Up @@ -56,7 +56,7 @@ var Hello = React.createClass({
});

function Hello({ name }) {
return <div>Hello {this.props.name}</div>;
return <div>Hello {name}</div>;
}
Hello.propTypes = {
name: React.PropTypes.string.isRequired,
Expand Down

0 comments on commit b898fcb

Please sign in to comment.