Skills101
← All practice quizzes

Quiz: React Basics

5 questionsNo time limitPass: 60%+10 XP on first pass

Build UIs with React: components and JSX, props flowing down, state with useState, lists with keys, forms, and fetching data with useEffect — the foundations of most frontend jobs.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    In JSX, which attribute replaces HTML's class?

  2. Question 2

    How should you add an item to a state array tasks?

  3. Question 3

    Can a child component change the props it receives?

  4. Question 4

    When does useEffect(fn, []) run?

  5. Question 5

    Why should list keys be stable ids rather than array indexes?