r/reactjs • • 1d ago

Discussion What version of React for technical interviews?

As the title says...

0 Upvotes

15 comments sorted by

4

u/azangru 1d ago

I haven't interviewed since React v18 and last project I worked on did not use React v19. Looking for guidance to prepare.

What could be the reason not to get yourself up to date with the latest?

-3

u/Luna_Coder 1d ago

Since it's been a while I need to crunch leetcode and brush up on fundamentals first. I don't know how many companies are actually using React Server Components and Server Actions to plan how much time I should spend on them.

1

u/PM_ME_FIREFLY_QUOTES 1d ago

To answer your question, yes. You should familiarize yourself with the new server components.

1

u/Honey-Entire 1d ago

You don’t need to grind leetcode as a FE developer, that’s absurd. And learning the differences between React 18 & 19 is trivial for anyone with experience. Just read the docs, make a demo, done

5

u/bouncycastletech 1d ago

It’s totally permissible to be up to date to 18 and say that you haven’t upgraded in your company’s codebase. But be able to speak generally to what 19 adds at a very high level.

You could also do the same for 17, and speak to what’s new in 18 at a high level (e.g. SSR, suspense, concurrency). I’d also have a general understanding of react compiler.

2

u/YupanquiDogos 1d ago

knowing why automatic batching changed in 18 comes up way more often than the big stuff like suspense

3

u/cloroxic 1d ago

React 19, it's been out forever. Depends on the company though, so I would understand the nuisance between 18 and 19. I've seen companies on some pretty outdated stuff.

4

u/photostu 1d ago

Opus 5.5

1

u/kylife 1d ago

One with hooks

1

u/akornato 1d ago

For practical coding rounds, React 18 is the standard baseline, though any modern version from 16.8 onward gives you the fundamental hooks you actually need on screen. Most live coding environments run React 18 or 19, but interviewers rarely care which specific version you code in, provided you write clean functional components. You will be evaluated on managing state with useState, handling side effects properly, handling derived state cleanly, and knowing when to reach for useMemo or useCallback. Unless a company explicitly asks about React 19 features like Server Actions or the use hook, sticking to solid React 18 patterns is completely safe for coding challenges.

Conceptual discussions are where version differences matter a bit more, especially if you interview for senior roles. You should know the highlights of React 18, such as automatic batching and transitions, alongside the general direction of React 19, including Server Components, form Actions, and the React Compiler. Being able to explain why a component rerenders and how to avoid performance pitfalls will always impress an interviewer more than memorizing niche APIs. Practicing realistic technical scenarios with the interviews.chat my team developed helps candidates speak about these complex architectural tradeoffs with clear confidence when it matters most.

1

u/codariadev 1d ago

I'd prep on 19, but the parts that actually come up are small:

  • ref as a regular prop (no forwardRef needed in new code)
  • Actions: useActionState, useFormStatus, <form action={fn}>
  • useOptimistic
  • use() for promises and context
  • what the React Compiler means for useMemo/useCallback (less manual memoizing)

In live coding nobody cares if the sandbox runs 18 or 19. They care about where state lives, effects that shouldn't be effects, keys, and fetching with loading/error states. RSC and server actions mostly come up if the company is on the Next.js App Router, so check the stack in the job post and only go deep there if it matches.

1

u/Frontend_Lead 1d ago

Prep on the current major (19), but what interviewers actually test has been stable since hooks:

- state and effects: useState, useEffect with cleanup, dependency arrays, stale closures

- rendering: when a component re-renders, keys, memo / useMemo / useCallback and when they don't help

- data fetching with loading / error states and race conditions

- custom hooks, context, controlled forms

Know the newer things at a talking level: the use hook, Actions and useActionState, useOptimistic, ref as a prop, and the compiler. If the interview is a live build, plain hooks are always accepted. Nobody fails for not using a 19 API, people fail on the basics above.

I keep the common React interview questions with solutions at frontendlead(com)/coding-questions/react (full disclosure, I built it)

1

u/nian2326076 14h ago

It's useful to stay updated on the latest React versions, especially with changes like automatic batching in version 18. Companies may work with different versions, so being adaptable is important. To help with technical interview preparation, you can use PracHub for a variety of interview questions and practice explaining concepts clearly.

0

u/Luna_Coder 1d ago

I haven't interviewed since React v18 and last project I worked on did not use React v19. Looking for guidance to prepare.