reading-notes

Reading Notes for Codefellows

View the Project on GitHub kylecohen14/reading-notes

Passing Functions as Props

React Docs - list and keys

  1. a new array that uses the results from called fucntion on every element in the called array
  2. {}
  3. Key
  4. Help react identify changes. Giving a stable identity

The spread Operator

  1. Syntax used for arrays to add items, combine diffrent arrays or objexcts, or spreading array into functions arguments
  2. Combinnig objects, converting NodeList to an array, adding an item to a list, using math functions
  3. Combining two diffrent arrays of fruits and bananas so that a dev can use the whole array together
  4. Video: How to pass functions between Components

  5. let color = {red}
    • let name = {apple}
    • let fruit = {red, apple}
  6. In the video, what is the first step that the developer does to pass functions between components?
  7. In your own words, what does the increment function do?
  8. How can you pass a method from a parent component into a child component?
  9. How does the child component invoke a method that was passed to it from a parent component?

CITE