- π Keep components small and function-specific
- β»οΈ Reusability is important, so keep creation of new components to the minimum required
- π€ Consolidate duplicate code β DRY your code
- π¨ Put CSS in JavaScript
- π Comment only where necessary
- π Name the component after the function
- π¦ Use capitals for component names
- π« Mind the other naming conventions
- π Separate stateful aspects from rendering
- π Code should execute as expected and be testable
- π All files related to any one component should be in a single folder
- π§° Use tools like Bit
- π Use snippet libraries
- βοΈ Write tests for all code
- π Follow linting rules, break up lines that are too long