Props and State Interview Questions for React JS
25 Props and State questions with answers for react js roles — 10 easy, 11 medium, 4 hard.
About Props and State
Props and state decide what a component shows and when it re-renders. This topic covers lifting state up, prop drilling, immutable updates of objects and arrays, controlled and uncontrolled inputs, derived state, resetting state with keys and typing props with TypeScript, the questions interviewers ask most in fresher and junior rounds.
Can a child component modify its props?
Show answer
What does lifting state up mean?
Show answer
What is prop drilling and how can you avoid it?
Show answer
How do you update objects and arrays in state without mutating them?
Show answer
How do you give default values to props in a function component?
Show answer
What is the children prop?
Show answer
What is the difference between controlled and uncontrolled components?
Show answer
How does a child component send data back to its parent?
Show answer
A teammate writes user.name = 'Ravi' inside a click handler and the screen does not update. Why?
Show answer
Why should you use the functional form of setState? Show an example.
Show answer
A developer stores fullName in state and updates it in a useEffect whenever firstName or lastName changes. What would you suggest?
Show answer
On a profile edit page, when you switch from one user to another the form still shows the old user's typed values. How can you reset it cleanly?
Show answer
Your team's old codebase uses PropTypes and is upgrading to React 19. What would you recommend for checking prop types?
Show answer
How do you type props for a component in TypeScript?
Show answer
A teammate writes setCount(count + 1) three times in a click handler and is surprised that the count increases by only one. Explain why.
Show answer
Should you keep related values in one state object or several useState calls?
Show answer
A cart page keeps the selected item object in state and also the items array. After editing the item's quantity, the details panel shows the old quantity. Why?
Show answer
What are the risks of spreading all props like <Input {...props} />?
Show answer
A junior notices that every child component re-renders when the parent's state changes, even when their props did not change. How do you explain this?
Show answer
Describe a time you disagreed with a teammate about how a component should be designed.
Show answer
How does React decide whether to keep or reset a component's state?
Show answer
A timer using setInterval inside useEffect always shows 1 and never goes higher. What is the bug?
Show answer
What is state colocation and why does it matter for performance and maintainability?
Show answer
How would you update deeply nested state cleanly? Show with Immer.
Show answer
Frequently asked questions
How important is Props and State in React JS interviews?
Props and state decide what a component shows and when it re-renders. This topic covers lifting state up, prop drilling, immutable updates of objects and arrays, controlled and uncontrolled inputs, derived state, resetting state with keys and typing props with TypeScript, the questions interviewers ask most in fresher and junior rounds.
How should I use the Props and State sheet?
Go top to bottom — easy to hard. Answer before opening each answer, tick what you solved and save misses to Last-Minute Revision.