Skip to content

Commit

Permalink
Adds section for config rules which contains rules followed by this repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahil Vora authored and Rahil Vora committed Jan 7, 2019
1 parent 070e620 commit 4d42bcc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ This style guide is mostly based on the standards that are currently prevalent i
- However, multiple [Stateless, or Pure, Components](https://facebook.github.io/react/docs/reusable-components.html#stateless-functions) are allowed per file. eslint: [`react/no-multi-comp`](https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-multi-comp.md#ignorestateless).
- Always use JSX syntax.
- Do not use `React.createElement` unless you’re initializing the app from a file that is not JSX.
- `react/forbid-prod-type` will allow `arrays` and `objects` only if it is explicitly mentioned what `array` and `object` contains.

## Class vs `React.createClass` vs stateless

Expand Down

0 comments on commit 4d42bcc

Please sign in to comment.