🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: React Basics: all 10 questions

Quiz: React Basics · Question 6 of 10

What is a React component?

What is a React component?

  1. A.A CSS file
  2. B.A function that returns JSX describing part of the UI
  3. C.A database table
  4. 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 →