From ced1cb3ad8a9bb880cfe6eb0de878027ccb933b1 Mon Sep 17 00:00:00 2001 From: Kevin Weber Date: Sun, 26 Aug 2018 17:15:08 -0700 Subject: [PATCH] List bad example first to be consistent --- react/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/react/README.md b/react/README.md index 340e780c01..a3236574a9 100644 --- a/react/README.md +++ b/react/README.md @@ -440,16 +440,16 @@ 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 + // bad render() { const { irrelevantProp, ...relevantProps } = this.props; - return + return } - // bad + // good render() { const { irrelevantProp, ...relevantProps } = this.props; - return + return } ```