File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -440,16 +440,16 @@ This style guide is mostly based on the standards that are currently prevalent i
440
440
Filter out unnecessary props when possible . Also , use [prop- types- exact](https: // www.npmjs.com/package/prop-types-exact) to help prevent bugs.
441
441
442
442
` ` ` jsx
443
- // good
443
+ // bad
444
444
render() {
445
445
const { irrelevantProp, ...relevantProps } = this.props;
446
- return <WrappedComponent {...relevantProps } />
446
+ return <WrappedComponent {...this.props } />
447
447
}
448
448
449
- // bad
449
+ // good
450
450
render() {
451
451
const { irrelevantProp, ...relevantProps } = this.props;
452
- return <WrappedComponent {...this.props } />
452
+ return <WrappedComponent {...relevantProps } />
453
453
}
454
454
` ` `
455
455
You can’t perform that action at this time.
0 commit comments