Skip to content
KALANBLON
Show contents

Chapter 3 of 6 · 10 min

Quiz: components and state

Components, JSX, props, lists and keys, state and events: let's check that you master React's basics. You need 70% correct answers, and every answer is explained.

Quiz

6 questions · pass mark: 70%

  1. 1.What is a React component?

    One answer

  2. 2.How do you insert a variable title into JSX?

    One answer

  3. 3.Which key should you choose for a list of courses that can be sorted and filtered?

    One answer

  4. 4.What does setViews(views + 1) do?

    One answer

  5. 5.Why does favourites.push("sql") followed by setFavourites(favourites) not update the screen?

    One answer

  6. 6.Fill in the attribute that gives a CSS class to an element in JSX.

    Complete the code

    <article _________="card">

Your progress is saved on this device. Create a free account to keep your progress on all your devices.