← Quiz: React Basics: all 10 questions
Quiz: React Basics · Question 6 of 10
What is a React component?
What is a React component?
- A.A CSS file
- B.A function that returns JSX describing part of the UI
- C.A database table
- D.A browser extension
Answer & explanation
Correct answer: A function that returns JSX describing part of the UI
Components are reusable building blocks such as a CourseCard or Navbar.
Can you get the rest right without peeking?
Take the timed Quiz: React Basics quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →