Interview practice

Frontend Developer (React)

2–5 years · Mid — React · JavaScript / TypeScript · State management · CSS · Performance · Accessibility

0–2 years 2–5 years 5–8 years 8+ years
ownership A feature you owned end to end 1 of 6
Can you describe a feature you owned from conception to delivery? What challenges did you face?
What a strong answer covers

Outlines the feature's purpose and scope; details the specific challenges encountered during development; explains decisions made regarding architecture and technology; describes the testing and feedback process; reflects on the impact of the feature post-launch.

The follow-up you would get

If you could revisit that project, what would you change?

Could you have answered that?
scenario Performance 2 of 6
You are tasked with optimising a React application that suffers from long load times. After profiling the app, you discover that unnecessary re-renders are contributing to the performance issues. How do you proceed?
What a strong answer covers

Uses React Profiler to identify components with high render counts; implements memoization with React.memo or useMemo; inspects shouldComponentUpdate lifecycle method for class components; applies lazy loading to components; reviews props to ensure minimal re-renders.

The follow-up you would get

After optimisation, there is still a noticeable lag on initial load. What additional strategies do you consider to further enhance performance?

Could you have answered that?
scenario State Management 3 of 6
A new feature requires you to integrate a third-party state management library into your existing React application. However, the integration is causing conflicts with your current state logic. What do you do in the first half hour?
What a strong answer covers

Identifies the conflicting state variables and logic; checks compatibility of the new library with existing state management; isolates the feature in a separate branch; begins to refactor state logic to accommodate the new library; considers using context or reducers for efficient state handling.

The follow-up you would get

The conflicts persist even after refactoring. What measures do you take to evaluate whether to stick with the new library or revert to the old state management solution?

Could you have answered that?
technical Accessibility 4 of 6
You receive feedback that a new feature in your React app is difficult to navigate for keyboard users. What immediate steps do you take to improve accessibility?
What a strong answer covers

Tests keyboard navigation through the feature; ensures proper semantic HTML elements are used; adds ARIA roles where appropriate; reviews focus management to ensure logical ordering; considers implementing tabIndex for custom components.

The follow-up you would get

How do you ensure that your changes accommodate screen reader users?

Could you have answered that?
technical State Management 5 of 6
You are managing complex state across several components in a React app. The state updates are causing unintended side effects in sibling components. How do you approach fixing these issues?
What a strong answer covers

Analyses how state is lifted and shared among components; checks for direct mutations and improper side effects; considers using useReducer for managing complex state logic; evaluates whether a context provider is appropriate for global state management.

The follow-up you would get

What tools or libraries could assist in tracking state changes and their impacts?

Could you have answered that?
scenario Debugging 6 of 6
You receive reports that a particular feature of your React application is throwing errors for some users but not for others. What steps do you take in the initial investigation?
What a strong answer covers

Checks the browser console for error messages; reproduces the error on various browsers and devices; examines the state and props during the error occurrence; uses error boundaries to catch and log errors; identifies user-specific conditions that may lead to the issue.

The follow-up you would get

You find that the error is due to a specific user configuration. How do you ensure this doesn’t happen again in future releases?

Could you have answered that?
That is this set.

Load six more — you will get questions you have not seen first.

Give me six more →

Say your answer out loud before revealing. Reading the answer first feels like learning and is not.