Question Bank

Lifting State and Context API Quiz

Difficulty: Medium

Six drills on lifting state to a common ancestor, when to switch to Context, and the useReducer + useContext pattern for a small, self-contained store.

Question Bank
/

Lifting State and Context API Quiz

Lifting State and Context API Quiz

Six drills on lifting state to a common ancestor, when to switch to Context, and the useReducer + useContext pattern for a small, self-contained store.

Question Bank
Medium
JavaScript
6 questions
quiz
react
hooks
interview-prep

1,148 views

17

Two <TempInput> components need to stay in sync (celsius and fahrenheit). Lift the temperature into a <TempConverter> parent and pass a setter down to both children.