Skip to content

Commit

Permalink
[Docs] Correct example for prefer-exact-props rule
Browse files Browse the repository at this point in the history
  • Loading branch information
smackfu authored and GitHub Enterprise committed Dec 19, 2022
1 parent 8b51eef commit ce52a57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/prefer-exact-props.md
Expand Up @@ -40,7 +40,7 @@ In this case, one could instead enforce only the exact props being used by using
class Foo extends React.Component {
props: {|
bar: string
}|
|}

render() {
return <p>{this.props.bar}</p>;
Expand Down

0 comments on commit ce52a57

Please sign in to comment.