diff --git a/react/README.md b/react/README.md index 6d71a16e..a2f26c9c 100644 --- a/react/README.md +++ b/react/README.md @@ -184,6 +184,16 @@ ``` + - Do not pad JSX curly braces with spaces. eslint: [`react/jsx-curly-spacing`](https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-curly-spacing.md) + + ```jsx + // bad + + + // good + + ``` + ## Props - Always use camelCase for prop names.