State Management Interview Questions for React JS
25 State Management questions with answers for react js roles — 6 easy, 13 medium, 6 hard.
About State Management
Real apps share state across many screens. This topic explains Context and its performance pitfalls, Redux core ideas, Redux Toolkit slices, thunks and RTK Query, memoised selectors and normalised state, plus lighter options like Zustand and Jotai, and the key difference between client state and server state handled by TanStack Query.
Explain the core concepts of Redux.
Show answer
How do you set up a Redux store and use it in components?
Show answer
Why must Redux reducers be pure functions?
Show answer
How do you debug Redux state changes?
Show answer
What is the Flux architecture?
Show answer
What is the main performance pitfall of React Context and how do you avoid it?
Show answer
Create a Redux Toolkit slice for a counter.
Show answer
How do you handle async API calls with createAsyncThunk?
Show answer
What is RTK Query?
Show answer
What is the difference between server state and client state?
Show answer
Show how to fetch data with TanStack Query.
Show answer
What is Zustand and how do you use it?
Show answer
A new mid-sized dashboard project is starting. How would you decide between Context, Redux Toolkit and Zustand?
Show answer
Five components on one page each fetch the same user profile, causing duplicate API calls. How would you fix this?
Show answer
How do you persist part of your state, like the cart, across page reloads?
Show answer
Where should you store the logged-in user's auth token in a React app?
Show answer
What is atomic state management, as in Jotai or Recoil-style libraries?
Show answer
Tell me about a time you pushed back on adding a new library to the project.
Show answer
What is Redux middleware?
Show answer
Why normalise state in Redux and what does createEntityAdapter do?
Show answer
What are memoised selectors and why use createSelector?
Show answer
After adding an AuthContext at the root, profiling shows the whole app re-rendering every few seconds. What would you check?
Show answer
How would you implement an optimistic update with TanStack Query and roll back on failure?
Show answer
You inherit an old Redux codebase with connect, hand-written action types and switch reducers. How would you modernise it?
Show answer
Frequently asked questions
How important is State Management in React JS interviews?
Real apps share state across many screens. This topic explains Context and its performance pitfalls, Redux core ideas, Redux Toolkit slices, thunks and RTK Query, memoised selectors and normalised state, plus lighter options like Zustand and Jotai, and the key difference between client state and server state handled by TanStack Query.
How should I use the State Management sheet?
Go top to bottom — easy to hard. Answer before opening each answer, tick what you solved and save misses to Last-Minute Revision.