-
-
Notifications
You must be signed in to change notification settings - Fork 852
Coding Best Practices
Koustov edited this page Jun 5, 2022
·
5 revisions
- Every check-in must be validated against responsiveness
- No console error
- Avoid unnecessary comments
- Write DRY
- No sensitive information disclosure
- A new line after every CSS block
- A new line after
- Play related CSS should not use any element selector
- Use ES6 scripts
- Try avoiding console log
- Use linter
- Try to use CSS per component-based
- Decompose into smaller components
- Use
functional
component - Appropriate naming and destructuring Props
- Member name in camel case
- Constants in upper case
- CSS class name in
hyphen-case
- Use
propTypes
as much as possible - Avoid many props
- Use map rendering for an array
- Use ternary operator and
&&
ReactPlay - The MIT License (MIT) Copyright ©2023 is an open-source project made with ❤️ by Tapas Adhikary and friends.