Skip to content

Commit

Permalink
Minor spacing update
Browse files Browse the repository at this point in the history
  • Loading branch information
s10wen authored Mar 28, 2018
1 parent 33819d6 commit 06e2899
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -421,13 +421,13 @@ This style guide is mostly based on the standards that are currently prevalent i
Filter out unnecessary props when possible. Also, use [prop-types-exact](https://www.npmjs.com/package/prop-types-exact) to help prevent bugs.

```jsx
//good
// good
render() {
const { irrelevantProp, ...relevantProps } = this.props;
return <WrappedComponent {...relevantProps} />
}
//bad
// bad
render() {
const { irrelevantProp, ...relevantProps } = this.props;
return <WrappedComponent {...this.props} />
Expand Down

0 comments on commit 06e2899

Please sign in to comment.