Refactoring a Complex React Component — 5 Best Practices to Write Efficient and Readable Components
- Prefer functional components with React Hooks
- DRY – Try to extract common things into another small functions (components)
- Shorten the names and destruct the props
- Apply Prop-Types
- Split into small pieces