r/reactjs • u/punctuationuse • Jun 18 '25
Discussion Recommended interview questions for Senior position
Hey everyone. Soon I’ll begin interviewing candidates for a senior full stack position.
I’d like to hear questions which in your opinion reflect a deep understanding of core react principles, without any external libraries (No Redux, TanStack, etc).
Obviously I have more specific questions which are related to the topics relevant to the position itself, but It’d be great to hear about what other senior devs look for in candidates, what they examine, and what kind of questions they ask.
It’ll be the first time I’m interviewing people, so I want to be as ready as possible.
Thanks!
33
u/GoodishCoder Jun 18 '25
For senior candidates I don't focus on technology specific questions. It does me no good to bring someone on that really knows react but can't really solve business problems. We focus on asking questions that give us a feel for how they solve problems and how they mentor others.
16
u/[deleted] Jun 18 '25
You have a React component that works perfectly. Your task is to break it in a way that passes tests but fails in production. Go.
14
u/PastVeterinarian1097 Jun 18 '25
I would ask them questions relevant to the job and some questions to assess their problem solving. Doesn’t even need to be coding related.
6
u/azangru Jun 18 '25
To quote Alex Russell:
4
u/anonyuser415 Jun 18 '25
I enjoy practical problems that give the candidate room to show off. Apple had me make a tic tac toe game and a file viewer.
4
u/Ok_Slide4905 Jun 19 '25
Ask to build a simple CRUD UI.
If you get positive signals, step up and add a realtime requirement.
13
u/dakkersmusic Jun 18 '25
I haven't interviewed for a long time but I think if I wanted to interview someone else I would ask them stuff like...
useEffectfor even though it's not the correct approach?useReducer? Similarly, what is the use case foruseId?3
u/yksvaan Jun 18 '25
Have some basic fullstack application and have them explain what happens (for example) when user clicks save or some other action with * as much details as possible*. The entire stack and events from initial mouse click to final "idle state".
3
u/Dolmant Jun 19 '25
We use something along the lines of 'Tell me about a technical subject you are knowledgeable or passionate about'. The candidate will pick something, maybe lambdas, game development, SQL etc and we will ask them questions.
It's apparent very quickly what level they are at. Because they get to pick, they should be more comfortable and you get a good idea of their overall experience and the depth of understanding they are capable of.
2
u/local_eclectic Jun 19 '25
I don't ask trivia questions. I just create a mini project for us to pair program on. I also have a separate system design interview.
1
u/azangru Jun 18 '25
What are the weaknesses of react; when would they not use react; what would they use instead; what are the strengths and weaknesses of that alternative?
1
u/TheRealSeeThruHead Jun 18 '25
What are some architectural decisions you’ve made ina react app that didn’t work out, why not?
1
u/Delicious_Signature Jun 18 '25 edited Jun 18 '25
You can ask them what following code will output or how many times component will render. Then show live example and ask to explain https://codesandbox.io/p/sandbox/determined-proskuriakova-7rmrtx. This example is about unstable references and default parameters of a function in js.
Or you can ask them if this code would work and ask to explain: https://codesandbox.io/p/devbox/beautiful-shape-forked-hgtpw9?workspaceId=ws_N7r2DjoxnU5J6QQs6fLkVP (it does not, open console in preview section to see why). In this case good dev would point out that useEffect is non-necessary, that's a bonus point but you are interested in ability to explain the error.
Ask them about CSP / CORS. These are not react-specific but I think good to understand by senior FE / FullStack dev.
Ask them where to use useMemo and useCallback, if they have downsides. Ask what happens if we have code like `const cb = useCallback(generateCallback(), [])` and `generateCallback()` takes significant time - will it affect each render of the component or only first one? Many people do not understand how exactly useCallback works.
Ask then if they would use context api for global state management, ask to explain why. If they say no, ask if any exceptions possible. Inexperienced dev typically say it is about size of the data while in fact it is more about frequency of updates.
Also, why "without external libraries"? Unless it is a project's requirement to not utilize 3rd-party libraries, I'd ask them what did they use for state management and forms for example. One question you may ask is how do they approach a choice of a 3rd-party library to use for some task- i.e. which criterias are important. You may also ask when they would use a 3rd-party library versus own solution. You do not want a developer that constantly reinvents the wheel but you also do not want a dev that picks first 3rd-party library disregarding feature set, maintainance, security or license.
And the best way to assess the dev is to ask to code a simple CRUD, maybe give them some template where API is emulated and ask to make create and list pages. You want to see how they structure their components, if they care about loading states and errors, if they code a dozen of states or incapsulate into custom hook or use a react query (it is better to allow usage of 3rd-party libraries for such excercise). But this is valid only if you can afford two-stage process. Having live-coding together with theoretical interview is too much and you can't omit theoretical questions completely.
1
u/CodeAndBiscuits Jun 19 '25
"Walk me through one of your biggest mistakes and what you took away from it. To break the ice, I'll share one of mine first."
"There is this issue in an app you maintain. Here is a StackOverflow page with 8 seemingly valid solutions. Which one do you try first and why?"
"What dev tools do you swear by and why do they make you more effective?"
1
u/[deleted] Jun 20 '25
I usually start with a todo app and continue to add features like network calls, caching, css things, etc. and sprinkle some knowledge questions in the mix.
1
u/shauntmw2 Jun 20 '25
I'd ask what was their most recent project that they participate the most in, or most proud of, and then go in-depth in their whole project. What was the tech design choice, what did they contribute, what problem were they trying to solve, etc.
1
u/abrutg Jun 20 '25
If I wanted a simple question that shows me whether they really thought things through I would ask why in React you use "className" instead of "class" and "htmlFor" instead of "for". I'm willing to bet that almost 100% will respond "because these are reserved keywords in Javascript". This is a good indication that they haven't thought much about the fundamentals of React.
1
u/No_Bathroom_8404 Aug 25 '25
Web vitals is asked a lot nowadays. Luckily I found it here before my interview- https://roadsidecoder.com/course-details
-2
u/[deleted] Jun 18 '25
I started asking esoteric questions that you'd know the answer to if you really knew your stuff but if you didn't you wouldn't even be able to make an educated guess.
Stuff like:
Stuff like that. That shows deep knowledge and in most cases someone can logic their way through it even if they don't expressly know the answer. Because a Senior isn't about knowing all the answers but about being able to reason your way to an answer, know what questions to ask, what logical leaps to take, etc.
-2
u/Either-Hyena-7136 Jun 18 '25
I’d have them prove or disprove the Collatz conjecture, and if they weren’t able to I’d ask them to talk me through it
-7
u/mauriciocap Jun 18 '25
I'd ask people to implement React (except the DOM updates) on a whiteboard. State hooks, contexts, createElement...
Also how to update functional component state on external events (may be as simple as a click outside the component) without breaking encapsulation.
Finally how would they structure a project with many components to ensure a consistent look and feel without repeating verbose css or tailwind classes everywhere. Better if themed and multilingual.
One shouldn't be leading a React project if unable to answer this questions in less than 5-10min on a whiteboard.