Lesson 10 of 10 15 min +125 XP
🧠 Quiz: React Mastery
Answer all questions to complete the quiz and earn 125 XP.
1
What is the correct way to create a React component?
2
How do you update state in React?
3
What's wrong with this code? {items.map(item => <li>{item}</li>)}
4
When does useEffect with an empty dependency array [] run?
5
Which is the correct way to pass a click handler with an argument?
6
What is the children prop used for?
7
How do you conditionally render an element only when a condition is true?
8
What happens when you call setState?
correct