← All quizzes

💻 Computer Science & IT

React fundamentals

State, effects, keys and re-renders — what React actually does when your component changes.

8questions

mediumdifficulty

+16max XP (1st try)

not rated yet

Question 1 of 8

Why does React need a stable `key` on list items?

Question 2 of 8

Calling `setState` twice with the same value in one handler causes:

Question 3 of 8

An effect with an empty dependency array runs:

Question 4 of 8

Derived data that can be computed from props and state should be:

Question 5 of 8

`useRef` is the right tool when you need:

Question 6 of 8

A React Server Component cannot:

Question 7 of 8

What does `useMemo` do?

Question 8 of 8

Lifting state up means:

0/8 answered

Part of