Jobs worldwide · Free to apply

Back to All Career Guides
Interview Preparation8 min readPublished Nov 17, 2026

React Interview Questions for Developers

React interviews test components, state, rendering and hooks, and how you think through real problems. Here are the questions that come up most, the plain answers that work, and a one-week plan to get ready.

Sheikh Muqtasid
Software Engineer
Quick answer

React interviews test components, state, rendering and hooks, and how you think, not memorised definitions. Answer in your own words with an example from a project you built. Know each hook by the problem it solves, and the classic useEffect and stale-closure mistakes. Performance questions are really about re-renders: know when a component re-renders, and when memoisation is worth it.

Key Takeaways & Executive Summary
  • React interviews test how you think about components, state, rendering and hooks, not how many definitions you've memorised.
  • Answer in your own words, and back it up with a small example from a project you actually built.
  • Know each hook by the problem it solves, and know the classic mistakes with useEffect and stale closures.
  • Performance questions are really about re-renders: know when a component re-renders, and when memoisation is actually worth it.
  • Give yourself one week: concepts, a small build, the common traps, your own projects, and a mock interview.

1. What React Interviews Actually Test

You walk in, and the interviewer doesn't ask you to recite the React docs. They ask you to build something small, then they watch how you think while you build it. That's the whole game. A React interview checks whether you get what React does for you, where it stops helping, and how you make calls inside real code. Four areas come up again and again: components, state, rendering, and hooks. If you're going for a junior role, expect the basics. Can you build a small feature? Can you pass data between components? Can you fetch from an API without breaking the page? Senior roles push further. How would you structure a big app? Where does state actually belong? What breaks when the app grows to dozens of screens? The company matters too. A product company might hand you a feature to build live and listen to you talk through it. A services company might fire theory questions at you across a wider range of topics. Both are watching the same thing: your reasoning. A clear answer in your own words beats a memorised definition every time. And when you're unsure, say what you'd check. That's worth more than a guess. Start with our software engineer interview prep guide at /career-advice/software-engineer-interview-prep so your React revision sits inside a wider plan, and focus on understanding, not collecting answers.

2. Core Concept Questions (with Plain Answers)

What's the difference between a component and an element? Interviewers love this one, because it shows whether you've actually thought about React or just used it. A component is a reusable piece of interface, a button, a card, a form. An element is the plain object React creates to describe what should show up on screen. Components return elements. Simple as that. Props and state trip people up in the same way. Props are data handed down from a parent to a child, and the child can't change them. State is data a component owns and can change, and that's what makes a page interactive. Then there are inputs. Controlled inputs take their value from state and update it on every keystroke, so you control validation completely. Uncontrolled inputs read their value from the DOM only when you need it. Easier, but harder to validate. And keys. Keys help React tell list items apart when a list changes, so use a stable id from your data. An array index is a poor substitute. It breaks the moment items get added or removed. Here's the trick when you answer: give the short definition, then a small example from something you actually built. Say you used controlled inputs in a checkout form so you could validate the card number before submission. That lands. A bare definition doesn't. If you can't give an example, build a tiny one before the interview.

How do React hooks work?

Hooks are how modern React components handle state and side effects, and interviewers will poke at whether you know when each one earns its place. useState holds a value that changes over time. A form field. A toggle. useEffect runs code after rendering, so that's where data fetching, subscriptions, and timers live, and its dependency array decides when it runs again. useMemo remembers an expensive calculation so it isn't repeated on every render. useCallback remembers a function so a child doesn't get a brand-new one each time. useRef holds a value that survives renders without causing a new render, which makes it right for DOM nodes and timers. The mistakes? They're always the same three. Forgetting a dependency in useEffect and reading stale data. Dropping a side effect straight into the render. And wrapping everything in useMemo before there's a real performance problem. Don't do that. A custom hook is worth pulling out when two components share the same stateful logic, like fetching data or tracking a form. When the interviewer asks about a hook, talk about the problem it solves, not just what it does. Say you used a custom hook to share the same data-fetching logic between three screens. That's the kind of answer that earns trust.

What makes a React component re-render?

A component re-renders when its state changes, when its parent re-renders, or when it gets new props. Get that, and most performance questions start making sense. React then compares the new output with the old one and updates only what changed in the DOM, which is why small components usually stay fast. Memoisation is for the cases where they don't. React.memo stops a child re-rendering when its props haven't changed. useMemo and useCallback protect expensive work and stable function references. Lists without keys are a classic trap. React can't match old items to new ones, so it may reuse the wrong DOM nodes. Stale closures are another. A function defined inside a component captures the state from the render when it was created, so a timer or event handler can read an old value unless you use a functional state update or a ref. Interviewers also set small coding tasks, and they watch more than the final answer. Did you break the problem into components? Did you handle loading and error states? Did you explain your choices as you went? Those things count. For the bigger design questions, our frontend architecture interview guide at /career-advice/frontend-architecture-interview-guide covers how to talk through structure. A working answer with clear thinking beats a clever answer you can't explain.

5. React with Next.js and TypeScript

Once a role mentions Next.js, the interview moves past React itself into how the framework delivers the app. The big idea is server components versus client components. Server components run on the server, fetch data directly, and send only HTML to the browser. Client components run in the browser and handle interaction, state, and effects. Keep components on the server by default. Mark one as a client component only when it needs interactivity. That's the rule of thumb, and interviewers want to hear it. Data fetching follows the same split. Fetch on the server where you can, so the page arrives with its data already in it. Reach for client-side fetching only for data that changes with user input. You'll also get asked about routing, layouts, and how you handle loading states and errors at the page level. TypeScript questions usually come down to typing props, so practise defining prop types, marking optional props, and typing event handlers and API responses. Don't reach for the any type. Interviewers read it as a sign you're dodging the type system instead of using it. The real test is whether your types help the next developer understand the component. Name your types clearly. Keep them close to the component that uses them.

6. A One-Week Preparation Plan

Seven days is enough if each day has one job. Day one, go back over the core concepts in section two and write each answer in your own words. Day two, build a small app with hooks: a list with search, a form, and data fetched from a public API. Day three, practise the traps from section four. Fix a list without keys. Fix a stale closure. Fix a component that re-renders too often. Day four, revise Next.js and TypeScript if the role mentions them, and rebuild one screen as a server component with a client component inside it. Day five, look at your own past projects and prepare a two-minute story for each one. What you built. What went wrong. What you'd do differently now. If your projects are thin, our guide to portfolio projects that get you hired at /career-advice/portfolio-projects-that-get-you-hired will help you pick work worth discussing. Day six, do a mock interview with a friend, or record yourself answering five questions out loud. It feels awkward. Do it anyway. Day seven, rest. Read the job description once more. Check the live frontend roles at /categories/frontend-development on our site. Walk in able to explain your thinking, and the definitions will take care of themselves. You can also look at the full-stack developer roles in Lahore at /jobs/full-stack-developer-lahore to see what local employers are actually asking for.

Frequently Asked Questions

How much React do I need to know for a junior interview?

You need the basics done well: components, props, state, lists, forms, and fetching data from an API. Know the common hooks too, especially useState and useEffect, and be ready to explain what they do in your own words. You don't need advanced topics like custom renderers or deep performance tuning for a junior role. What matters most is a small project you can talk about, because interviewers will ask you to explain decisions you made in your own code.

Do interviewers still ask about class components?

Rarely, and usually only as a short comparison question, like how class lifecycle methods map to useEffect. Almost all new React code is written with function components and hooks, and that's what interviewers test. Know that class components exist and roughly how they worked, but spend your preparation time on hooks and modern patterns. If someone does ask about classes, a short honest answer about the old pattern is enough.

What should I build to prepare for a React interview?

Build one small app that covers the things interviews test: a list with search and filters, a form with validation, data fetched from a public API, and routing between two or three pages. Put it in your portfolio with a short write-up of what you built and why. One working project you understand deeply is worth more than five tutorial copies you can't explain. Be ready to walk the interviewer through your code and say what you'd change.

How do I answer a React question I do not know?

Say so plainly, then reason out loud. Start from what you do know, describe how you'd find the answer, and give your best guess while labelling it as a guess. Interviewers respect honesty and clear thinking far more than a confident wrong answer. You can also ask a clarifying question, which often reveals what the interviewer is really testing. Never bluff through a technical answer, because a follow-up question will usually expose it.

Ready to Put These Strategies into Practice?

Explore thousands of software, remote, and IT vacancies actively hiring today.

Browse Openings

Recommended Career Playbooks

Interview Preparation

Common Interview Questions in Pakistan and How to Answer Them

Prepare for common interview questions in Pakistan, from "tell me about yourself" to salary and personal questions, with sample answers and tips.

Read Article
Interview Preparation

Node.js Interview Questions for Backend Developers

Node.js interviews test the event loop, async JavaScript, API design, databases and production basics. Here are the questions that come up most, the plain answers that work, and a one-week plan to get ready.

Read Article
Interview Preparation

How to Talk About Failures and Conflict in Tech Interviews Without Sounding Fake

The authentic engineer’s guide to answering "Tell me about a time you failed" and "Describe a disagreement with a manager" with maturity and humility.

Read Article
Interview Preparation

Acing the Frontend System Design Interview: Beyond Centering a Div

How senior frontend engineers architect scalable state, optimize web vitals, design modular component libraries, and handle offline resilience.

Read Article