Passing Functions as Props
Lists and Keys
Lists and Keys
- Map creates a new array wiht the results of the old array being used in a function
- Use the Map funcition
- Each list item needs a unique key
- A key is used to help react identify things
The Spread Operator
The Spread Operator
- the spread operator is used for adding items to an array
- it can also be used to
- copy an array
- use math functions
- use an array as an argument
- add a state to react



Pass Functions Between Components
Pass Functions Between Components
- He creates the increment function where you want to change the state
- increment changes the “count”
- I literally have no clue what this dude is doing