reading-notes

Notes 2

What does .map() return?

If I want to loop through an array and display each value in JSX, how do I do that in React?

What is the purpose of a key?

What is the spread operator?

List 4 things that the spread operator can do.

Give an example of using the spread operator to combine two arrays.

Give an example of using the spread operator to add a new item to an array. (example added from https://medium.com/coding-at-dawn/how-to-use-the-spread-operator-in-javascript-b9e4a8b06fab)

Give an example of using the spread operator to combine two objects into one. (example added from https://medium.com/coding-at-dawn/how-to-use-the-spread-operator-in-javascript-b9e4a8b06fab)

In the video, what is the first step that the developer does to pass functions between components?

In your own words, what does the increment function do?

How can you pass a method from a parent component into a child component?

How does the child component invoke a method that was passed to it from a parent component?

BACK TO HOME