Interview practice question
Deciding where a new piece of state should live
Frontend Engineering · State Management and Data Fetching · Beginner
You're adding a "selected tab" feature to a settings page. How do you decide where its state should live?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Who needs it? Only this component → local.
- Should it survive refresh/share? → URL.
- Shared widely → store/context.
- Server-owned? → server.
- Start local; lift when needed.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.