Skip to content

Latest commit

 

History

History

Lesson 2

Working with Props

A Counter component that receives data from parent components:

  • Props: initialCount (required), label (optional)
  • One-way data flow from parent to child
  • Reset functionality based on props

Commands:

npm run dev    # Start dev server
npm run test   # Run tests
npm run test:watch  # Tests in watch mode