Interview Prep · React & Frontend
What Separates a Memorized Answer From Real React Developer Skill
Quick summary — memorised vs real React skill
Two candidates can give the same first answer. The second question separates them. A memorised answer can survive the first question. It cannot survive the follow-up, because the follow-up asks "why".
In this guide you will learn:
- The first question every React interview asks — and the wrong way to answer it.
- Reasoning vs definitions — what real understanding looks like.
- The follow-up questions — and how to handle them.
- Common memorised phrases — and how to replace them.
- How to practise — a simple routine.
SECTION 01The first question every React interview asks
It is almost always a version of: "What does useEffect do?" or "What is the difference between useEffect and useLayoutEffect?". Here is how the two answers differ:
| Answer Type | What It Sounds Like | What The Interviewer Thinks |
|---|---|---|
| Memorised | "useEffect runs after render." | "That's a textbook line. Let me see if they know why." |
| Partially understood | "It's like componentDidMount and componentDidUpdate." | "That's a class-component analogy. Not wrong, not deep." |
| Real skill | "It lets you synchronise with something outside React after commit." | "Good. Now let me ask about the dependency array." |
| Real skill + experience | "…and the cleanup function is where most bugs hide." | "This person has shipped. Let's keep going." |
Memorized Answer:
"useEffect runs after every render. You pass a
dependency array to control when it runs. If
you pass an empty array, it runs once."
Why it sounds memorized:
- It is correct.
- It is also what 100% of candidates say.
- It does not explain why it exists, what it is
for, or what happens when it goes wrong.
Result: the interviewer asks a follow-up and the
candidate's reasoning collapses.
Real Skill Answer:
"useEffect is React's way of letting a component
synchronise with something outside of React —
a network request, a subscription, a DOM API,
a timer.
It runs after the commit phase, so the browser
has already painted. That is why it is safe to
measure the DOM in an effect but not during
render.
The dependency array decides when it re-runs.
But the part that matters in production is the
cleanup function. If you set up a subscription
and do not tear it down, you get memory leaks,
double handlers in strict mode, and stale
closures.
I have seen that bug more times than I can
count in code review."
Why it sounds real:
- It explains the purpose, not just the API.
- It names the timing and the reason.
- It names the bug the person has actually
fixed.
SECTION 02Reasoning vs definitions
Real React skill shows up in the way you reason, not in the words you use. Here is the difference across the topics interviewers ask about:
| Topic | Memorised Answer | Real Skill Answer |
|---|---|---|
| State updates | "setState is async." | "Updates are batched; the state you read in the same render is the old one." |
| Keys | "Keys help React identify items." | "Without stable keys, React reuses the wrong DOM node and local state travels." |
| useMemo | "It memoises a value." | "It is for expensive calculations — not for making components faster by default." |
| Context | "Context is for global state." | "Context removes prop drilling, but every consumer re-renders when the value changes." |
Memorised phrase:
"Context is for global state."
Why it fails the follow-up:
- Every consumer re-renders when the value
changes, even if it uses only one field.
- That is the trade-off. If you do not know
it, the follow-up exposes you.
Real Skill phrase:
"Context avoids prop drilling, but it is not a
state manager. Every consumer re-renders when
the value object changes.
That is why we split context by concern and
memoise the provider value — otherwise a
change in the cart count re-renders the
entire app."
Why it works:
- It names the benefit.
- It names the cost.
- It names the fix.
SECTION 03The follow-up questions
The follow-ups are where the interview is won or lost. Here are the ones that separate the two candidates:
| Follow-Up | What It Exposes | Strong Response |
|---|---|---|
| "Why that dependency?" | Whether you understand re-runs | "Because the effect reads that value — if it changes, I must re-sync." |
| "Why not in the render body?" | Render vs effect timing | "Render must stay pure — side effects belong after commit." |
| "What breaks in strict mode?" | Whether you have shipped | "Effects run twice in dev — cleanup is not optional." |
| "Why not useMemo here?" | Whether you over-optimise | "The calculation is cheap — memoisation adds overhead for no gain." |
Weak:
Interviewer: "Why is the empty array there?"
Candidate: "Because it runs once."
Interviewer: "Why does it run once?"
Candidate: "Because that is what the docs say."
Result: the conversation stops. The candidate
memorised the rule, not the reason.
Strong:
Interviewer: "Why is the empty array there?"
Candidate: "Because this effect has no
dependencies on props or state — it is a
one-time subscription. If I added a prop
here, I would need to add it to the array,
otherwise the effect would capture a stale
value."
Interviewer: "What happens in strict mode?"
Candidate: "It runs twice in development, so
the cleanup has to actually unsubscribe —
otherwise you get two listeners and
double-fetching."
Result: the interviewer stops testing and
starts discussing.
SECTION 04Common memorised phrases
Here are the phrases that signal a memorised answer — and what to replace them with:
Phrases that sound memorised:
- "setState is async."
- "Keys help React identify items."
- "Context is for global state."
- "useMemo memoises a value."
- "Hooks are functions that let you use state."
Every one of these is technically correct.
Every one of these fails the follow-up.
Replacements:
- "Updates are batched; state is a snapshot
within a render."
- "Keys must be stable, or React reuses the
wrong DOM node."
- "Context removes prop drilling, but every
consumer re-renders on change."
- "useMemo is for expensive calculations —
not a default optimisation."
- "Hooks let components share logic without
class components or HOCs."
Why it matters:
- The memorised phrase sounds correct but
shallow.
- The replacement sounds like someone who
has debugged the problem.
- The follow-up is where the difference is
decided.
SECTION 05How to practise
Here are tips to build real React skill instead of memorised answers:
- Build one real feature — a form, a list, a fetch with cleanup.
- Explain it out loud — say why the effect exists, not just what it does.
- Break it on purpose — remove the cleanup, change the key, watch the bug.
- Name the trade-off — every answer should include one cost.
- Practise follow-ups — ask yourself "why" after every answer.
SECTION 06Interview Q&A — React
Q1How do I know if my answer is memorised?
If you cannot answer "why" after your own answer, it is memorised. Real skill always has a reason and a trade-off.
Q2Is it bad to learn from tutorials?
No. It is bad to stop there. A tutorial teaches the API. Only building and debugging teach the reasoning.
Q3What is the fastest way to build real skill?
Build one small feature, break it on purpose, and explain the bug and the fix out loud. That is one real answer built in an afternoon.
Q4What if I have no production experience?
Use personal projects. A bug you fixed in a side project is still a real bug, and the reasoning is still real.
Q5How long should a React answer be?
One clear sentence for the definition, one for the reason, one for the trade-off. Then stop and let them ask.
SECTION 07Test yourself — React skill quiz
Five questions. No sign-up.
0 / 5Pick an answer to see why it is right or wrong.
SECTION 08Frequently asked questions
What is the difference between a memorised answer and real skill?
A memorised answer survives the first question. Real skill survives the follow-up, because it includes reasoning and a trade-off.
Why do interviewers ask follow-ups?
To check whether the first answer was memorised. The follow-up asks "why" — and "why" is not in a textbook.
Do I need to know every hook in depth?
No. You need to know three or four deeply — useState, useEffect, useMemo, and maybe useRef — with trade-offs.
What is the biggest tell of a memorised answer?
No trade-offs. The candidate gives a definition but cannot name a single cost, bug, or reason.
Can I fake real skill?
Not for long. The second or third follow-up always finds the gap. The fix is to actually build and debug.
SECTION 09Related reads
Classroom & online · Noida
Learn React by building, not memorising
Our Data Analytics Training Course includes hands-on React, hooks, state management, and interview prep that gets you past the follow-up questions.
₹15,500 · full programme- Hands-on React labs
- Hooks, context, and performance
- Mock interviews with feedback
- Weekday & weekend batches