1 parent 33819d6 commit 06e2899Copy full SHA for 06e2899
1 file changed
react/README.md
@@ -421,13 +421,13 @@ This style guide is mostly based on the standards that are currently prevalent i
421
Filter out unnecessary props when possible. Also, use [prop-types-exact](https://www.npmjs.com/package/prop-types-exact) to help prevent bugs.
422
423
```jsx
424
- //good
+ // good
425
render() {
426
const { irrelevantProp, ...relevantProps } = this.props;
427
return <WrappedComponent {...relevantProps} />
428
}
429
430
- //bad
+ // bad
431
432
433
return <WrappedComponent {...this.props} />
0 commit comments