Question Bank · Section 17
React Advanced: Application Behavior
7 questions. Real-world app behavior questions: auth guards, API errors, duplicate fetches, large forms, theming, offline support and stale deployments.
These questions describe something going wrong (or needing to work) in a real product and ask how you'd handle it. Interviewers want to hear the root cause first, then a fix that fits current tools like React Router, TanStack Query and service workers.
01How do you prevent a login page from being accessible after the user is logged in?02How do you handle API errors gracefully in the UI?03A component is fetching the same data multiple times unnecessarily. How do you fix it?04How do you handle a form with 20+ fields efficiently?05Your React app needs to support dark mode. How do you implement it?06How do you handle offline and online state gracefully in React with service workers?07Production is not getting the latest deployed update unless in incognito mode. How do you solve this?