Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 1.1 KB

index.md

File metadata and controls

27 lines (17 loc) · 1.1 KB

This section contains specific rules for React

JSX Syntax

Always use JSX syntax.

No Mixins

Do not use mixins!

Mixins introduce implicit dependencies, cause name clashes, and cause snowballing complexity. Most use cases for mixins can be accomplished in better ways via components, higher-order components, or utility modules. Facebook announced that mixins are considered to be harmful.

No isMounted

Do not use isMounted!

isMounted is an anti-pattern, it is not available when using ES6 classes, and is going to be officially deprecated.