- Components must have PropTypes
- Dont use destructuring for props
- Use Redux only for common data
- Save only plain serializable objects in Redux
- Avoid Redux “connect”
- Use onChange/value contract
- Always memorize components
- Do not use context
- Basics of React Hooks
- Reduce functions re-creation
- Naming template for useState
- Store hooks in separated files
- Split Hooks if they reach limit
- Create useful custom hooks
It is recommended to use as a common rules:
Airbnb React Style Guide
Copyright © 2017 Stanislav Kochenkov