devmeetings-react-ts-fork
  • Devmeeting React + Typescript
  • Speed dating
  • Typescript
    • It's just JavaScript
    • Basic types
    • Typing objects
    • Typing functions
    • Modules
    • Generics
    • Tasks
  • Hello React
    • Quick look around
    • The first component
    • JSX
    • Tasks
  • Components & Props
    • Small components
    • Passing data to a component
    • Loops in JSX
    • Tasks
  • Stateful components
    • Handling events
    • Components with internal state
    • Talking to a parent component
    • Smart and dumb components
    • Before the break
    • Tasks
  • Side-effects and context
    • Side-effects
    • Prop drilling
    • Using context
    • Tasks
  • What's next
    • Styling
    • Learning component's lifecycle
    • State Management
Powered by GitBook
On this page
  • 1. Create a single contact component
  • 2. Create a component for list of contacts
  • 3. Add tags to the contact component
  • 4. Mark some contacts as favorites and show them on separate list

Was this helpful?

  1. Components & Props

Tasks

PreviousLoops in JSXNextStateful components

Last updated 5 years ago

Was this helpful?

Hint: pay attention to naming - the file, the component and its props should have names that reflect what they are and what they do.

1. Create a single contact component

2. Create a component for list of contacts

3. Add tags to the contact component

Hint: tags can be stored as an array of strings

4. Mark some contacts as favorites and show them on separate list

Hint: Contact is marked as favorite with a flag (add those flags manually)

⭐
⭐