Professional Documents
Culture Documents
Front-End - Technologies Phase 0
Front-End - Technologies Phase 0
Naming Conventions
- Files, Components: PascalCase
- Components instances: camelCase
- CSS classes: flat case (all lowercase)
- Constants: Screaming_Snake_case (Ex: API_URL)
- Utility functions: camelCase
- Props: camelCase & PascalCase for React Components
- Variables: camelCase
- Handlers: handleEvent or handleComponentEvent (e.g. handleCommentSubmit)
Why Tailwind?
- Tailwind CSS uses a utility-first approach, which means that it provides a set of low-
level CSS utility classes that can be combined to create any design. This means a lot
of control over CSS and makes it easy to create custom designs
Why Docgen?
- React Docgen automates the process of generating documentation for components.
saving us the time of writing and maintaining documentation manually.
- The generated documentation from React Docgen provides a clear and standardised
format for understanding and using the components. It includes information about
props, prop types, default values, and other relevant details.