AI Hints
Home›React Tutorial›Styling and Practice
React · Lesson 18 of 120

Rendering Quiz

Test yourself.

⏱ 2 min read▶ Video at 13:15🎓 Free
Watch this lesson in the React courseWatch on YouTube ↗Full React course

Let's review rendering. Pause after each question, and answer before I do.

  • Rendering quiz
  • Pause and think
  • Then check

Question 1

Which array method turns data into a list of elements? Map.

Quick check
To render a list, use:

Question 2

What makes the best key? A stable ID from the data.

Quick check
The best key is:

Question 3

What does a component return to show nothing? Null.

Quick check
To render nothing, return:

Question 4

What does the style prop take? A JavaScript object.

Quick check
style={...} takes:

Summary

Well done. Next, a new section on interactivity, starting with events.

Key takeaways
  • map
  • key
  • null
Next up: Events — onClick