React Developer Interview Questions & Answers
40 questions for React Developer interviews — 26 easy, 14 medium.
About the React Developer role
A React developer builds and maintains user interfaces as reusable components, connects them to REST or GraphQL APIs and manages state with hooks and libraries such as Redux Toolkit or TanStack Query. Freshers usually start by building screens from Figma designs, fixing bugs and writing component tests under a senior's guidance, in product startups or IT service projects for global clients.
Can a child component modify its props?
Show answer
How do you update objects and arrays in state without mutating them?
Show answer
What is the children prop?
Show answer
What is an effect cleanup function and why is it important?
Show answer
Tell me about a React project you built and the hardest problem you solved in it.
Show answer
What is automatic batching in React 18 and later?
Show answer
How do you set up a Redux store and use it in components?
Show answer
Your component fetches data in useEffect and the network tab shows thousands of requests in a loop. What could cause it?
Show answer
Describe a time you found and fixed a bug reported by a real user.
Show answer
You import a component and get the error 'Element type is invalid: expected a string or a class/function but got undefined'. How do you debug it?
Show answer
What does one-way data flow mean in React?
Show answer
Show a basic React Router setup with a home page, a product page and a 404 page.
Show answer
Your manager asks you to set up a new React project in 2026 and suggests Create React App. What would you recommend?
Show answer
What is the difference between useMemo and useCallback?
Show answer
What is the difference between props and state?
Show answer
What is React and why is it so widely used for building web interfaces?
Show answer
Tell me about a mistake you made that reached production and what you learned.
Show answer
What is the difference between controlled and uncontrolled components?
Show answer
You see the error 'Rendered more hooks than during the previous render'. What is wrong?
Show answer
What is the difference between functional components and class components?
Show answer
How do you handle a form with multiple controlled inputs using one change handler?
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
What is JSX and how does the browser understand it?
Show answer
What is hydration?
Show answer
What are keys in React lists and why are they required?
Show answer
What is prop drilling and how can you avoid it?
Show answer
The linter shows a react-hooks/exhaustive-deps warning and a teammate wants to disable the rule. What do you advise?
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
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
What changed with createRoot in React 18 and later compared to ReactDOM.render?
Show answer
What does useContext do?
Show answer
A teammate writes user.name = 'Ravi' inside a click handler and the screen does not update. Why?
Show answer
Show the common ways to do conditional rendering in React.
Show answer
A user types into an input inside a list row, then sorts the list, and the typed text appears in a different row. How would you fix this?
Show answer
Write a simple counter component with increment, decrement and reset buttons.
Show answer
What do useActionState and useFormStatus do in React 19?
Show answer
What are React hooks and what are the rules of hooks?
Show answer
How do you return multiple elements from a component without adding an extra div?
Show answer
What does lifting state up mean?
Show answer
Frequently asked questions
What does a React Developer do?
A React developer builds and maintains user interfaces as reusable components, connects them to REST or GraphQL APIs and manages state with hooks and libraries such as Redux Toolkit or TanStack Query. Freshers usually start by building screens from Figma designs, fixing bugs and writing component tests under a senior's guidance, in product startups or IT service projects for global clients.
Which skills are tested in a React Developer interview?
Expect questions on JSX and components, React hooks, REST API integration, TypeScript basics, Git and pull requests. Most rounds also ask you to explain a project and solve one practical problem live.
How do I prepare for a React Developer interview?
Revise React Fundamentals, Props and State, React Hooks first using the topic sheets, practise the questions on this page aloud, then do one full mock interview to practise timing.