React JS Managerial Round Questions & Answers
35 questions for the managerial round stage — 21 medium, 14 hard.
About the managerial round round
The managerial round is usually with a hiring manager or team lead. It mixes real-work scenarios, prioritisation and stakeholder questions with behavioural questions about ownership, conflict and learning.
Tips for the managerial round round
- Use the STAR format for every story: Situation, Task, Action, Result.
- Show trade-offs: what you chose, what you gave up and why.
- Be honest about mistakes and focus on what you changed afterwards.
- Ask the manager about team goals and how success is measured in the role.
How do you upload a file with a preview in React?
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
How do you test a component that fetches data from an API?
Show answer
Field data shows poor INP on the 'Add to cart' button of a product page. How do you improve it?
Show answer
How would you implement an optimistic update with TanStack Query and roll back on failure?
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
A teammate wraps every function in useCallback and every value in useMemo for performance. When should you not memoise, and what feedback would you give?
Show answer
How do you test a component that depends on Redux and React Router?
Show answer
Your tests pass but print 'An update to Component inside a test was not wrapped in act(...)'. What does it mean and how do you fix it?
Show answer
Tell me about working with a backend team when an API did not match what the frontend needed.
Show answer
Where should you store the logged-in user's auth token in a React app?
Show answer
Tell me about a time you pushed back on adding a new library to the project.
Show answer
What is the difference between the App Router and the Pages Router in Next.js?
Show answer
What is lazy initialisation in useState and when should you use it?
Show answer
During a security review you find a payment provider's secret key in the browser's JavaScript bundle. What do you do?
Show answer
Why should you use the functional form of setState? Show an example.
Show answer
A cart page keeps the selected item object in state and also the items array. After editing the item's quantity, the details panel shows the old quantity. Why?
Show answer
Explain the testing pyramid and the testing trophy. Which applies to frontend?
Show answer
An e-commerce site has one lakh product pages whose prices change a few times a day. Which rendering strategy would you choose in Next.js?
Show answer
Typing in a search box feels laggy because a big product list is filtered on every keystroke. How do you fix it?
Show answer
Five components on one page each fetch the same user profile, causing duplicate API calls. How would you fix this?
Show answer
Which queries should you prefer in React Testing Library and why?
Show answer
A test in CI fails randomly about one time in ten. How do you handle a flaky test?
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
A search box fetches results on every keystroke and sometimes shows results for an older query. How do you fix this race condition?
Show answer
A 60-field insurance form becomes laggy while typing because every keystroke re-renders the whole form. How would you fix it?
Show answer
After adding an AuthContext at the root, profiling shows the whole app re-rendering every few seconds. What would you check?
Show answer
Show a Server Function used to handle a form in Next.js.
Show answer
How would you explain to a non-technical manager why our marketing pages need server rendering?
Show answer
Your team has hundreds of snapshot tests that developers update blindly whenever they fail. What are the drawbacks of snapshot tests and what would you suggest?
Show answer
After navigating between pages for a while, the app's memory keeps growing and it slows down. How do you investigate a memory leak?
Show answer
What are loaders and actions in React Router?
Show answer
How do you expose a custom method like focus() from a child to a parent in React 19?
Show answer
Your team uses the array index as key in a todo list and users report that checkboxes get ticked on the wrong item after deleting a row. What is happening?
Show answer
Frequently asked questions
What happens in the React JS managerial round round?
The managerial round is usually with a hiring manager or team lead. It mixes real-work scenarios, prioritisation and stakeholder questions with behavioural questions about ownership, conflict and learning.
How do I clear the managerial round round?
Use the STAR format for every story: Situation, Task, Action, Result. Show trade-offs: what you chose, what you gave up and why. Be honest about mistakes and focus on what you changed afterwards.
Which round comes next?
A typical order is online assessment, telephonic screening, one or two technical rounds, a managerial round and HR. Use the other round pages to practise each stage.