Skip to content
Divyansh Bhardwaj edited this page Oct 8, 2025 · 13 revisions

Welcome to the class-notes wiki!

๐Ÿ“š Table of Contents

๐Ÿ“ Implementation Notes

General Guidelines

  1. Always start with tests - Write tests before implementing components
  2. Use TypeScript - Define proper types for all props
  3. DaisyUI classes - Prefer DaisyUI component classes over custom styles
  4. Accessibility - Include proper ARIA labels and semantic HTML
  5. Responsive - Use Tailwind responsive prefixes (sm:, md:, lg:, xl:)
  6. Props destructuring - Destructure props in function signature
  7. Default props - Provide sensible defaults where appropriate
  8. Export pattern - Use named exports from index.ts files

Component File Structure

Each component should have:

ComponentName/
โ”œโ”€โ”€ ComponentName.tsx        # Main component
โ”œโ”€โ”€ ComponentName.types.ts   # TypeScript types
โ”œโ”€โ”€ ComponentName.test.tsx   # Tests (in __tests__ folder)
โ””โ”€โ”€ index.ts                 # Barrel export

Testing Each Component

For each component, test:

  1. Rendering - Does it render with required props?
  2. Props - Are all props handled correctly?
  3. Events - Do event handlers work?
  4. Conditional rendering - Are conditionals working?
  5. Edge cases - Empty states, null values, etc.
  6. Accessibility - Proper roles, labels, keyboard navigation

๐ŸŽฏ Getting Started

  1. Choose a component from the development order
  2. Review the Component Templates for the component structure
  3. Write tests first based on the component requirements
  4. Implement the component following the structure
  5. Ensure tests pass
  6. Create a pull request

Good luck with your implementation! ๐Ÿš€

Last Updated: October 2025
Project Version: 1.0.0
React Version: 19
Maintained by: Divyansh Bhardwaj

Clone this wiki locally