reading-notes

My reading notes


Project maintained by brandomoki Hosted on GitHub Pages — Theme by mattgraham

Passing Functions as Props

React Docs - lists and keys

  1. What does .map() return?
    • a newly mapped array
  2. If I want to loop through an array and display each value in JSX, how do I do that in React?
    • use the map function and return an jsx element
  3. Each list item needs a unique __.
    • Key
  4. What is the purpose of a key?
    • helps react identify which items have changed, are added, or are removed