reading-notes

Passing Functions as Props

Lists and Keys

Lists and Keys

  1. Map creates a new array wiht the results of the old array being used in a function
  2. Use the Map funcition
  3. Each list item needs a unique key
  4. A key is used to help react identify things

The Spread Operator

The Spread Operator

  1. the spread operator is used for adding items to an array
  2. it can also be used to
    • copy an array
    • use math functions
    • use an array as an argument
    • add a state to react
  3. image
  4. image
  5. image

Pass Functions Between Components

Pass Functions Between Components

  1. He creates the increment function where you want to change the state
  2. increment changes the “count”
  3. I literally have no clue what this dude is doing