Chapter quiz · Patterns

Test what you learned.

8 questions on Patterns. Pass 70% to clear the chapter.

← Review chapter lessons

Quiz

Patterns — Chapter Quiz

Eight questions on composition, suspense, memo, and other patterns.

0/ 8
  1. Question 1
    1

    A Modal component is growing 10+ showX booleans. The cleanest refactor is…

  2. Question 2
    2

    A controlled component owns its state; an uncontrolled one stores its state in the parent.

  3. Question 3
    3

    What does createPortal(content, node) do?

  4. Question 4
    4

    Error boundaries are still class components — but they only catch errors thrown…

  5. Question 5
    5

    What is <Suspense fallback={<X />}> for?

  6. Question 6
    6

    React.memo(Component) skips a re-render when…

  7. Question 7
    7

    Changing a component's key between renders unmounts and remounts it (resetting state).

  8. Question 8
    8

    To split off a component into its own bundle chunk, use React.________(() => import("./Comp")).

Pick an answer — instant feedback as you go.