Skip to content

Frontend Engineer interview kit: questions and rubric

For hiring teams interviewing a mid‑level frontend engineer, roughly three to six years in, who builds web interfaces in a component framework such as React with TypeScript.
By IraPublished by the Itya teamUpdated
competencies
5
questions
12
sample answers
24

How to use this kit

This kit covers a short screen, five competencies with a 20‑minute component review, behavioral and situational questions, anchored ratings, the questions never to ask, and a rule for deciding.

  1. Agree the competencies with the hiring manager before the job is posted.
  2. Give each interviewer one or two competencies, so nothing is asked twice.
  3. Ask every candidate the same core questions; follow up freely.
  4. Rate each competency against the anchors straight after the interview, alone.
  5. Debrief on quotes, not adjectives, then decide with the rule at the end.

Meet the candidates

Three candidates for the Frontend Engineer role answer every question below. Each is strong somewhere and thin somewhere else, the way real candidates are, so every question has a strong and a weak answer to compare.

  • Sana MirzaFrontend engineer, online grocery

    5 yearsHyderabad

    Five years on a busy grocery storefront, mostly in React. Sharp on state and on speed for budget phones; tends to build exactly what the mockup shows and leave accessibility and tests for later.

  • Oliver BennettFrontend developer, public-sector services

    8 yearsManchester

    Eight years building public‑service forms that have to pass accessibility audits. Careful about semantics and tests; less at home with complex client state and profiling, and can be blunt when a design falls short.

  • Divya ShettyFrontend developer, personal finance app

    3 yearsMangaluru

    Three years on a personal finance app, and the engineer designers ask for by name. Thinks through every state of a screen before building it; still building depth in accessibility, performance and testing.

Illustrative people. The names are invented, the portraits are AI-generated, and their words were written with AI to show what candidates sound like. Any resemblance to a real person is a coincidence.

First-round screen

Fifteen to twenty minutes, by phone, video or a disclosed AI screen. The aim is to confirm the basics before the panel spends its time.

  1. What draws you to frontend work, and what kind of interface work do you want more of in your next job?
  2. Walk me through an interface you built that real users depend on: what it does, which part you owned, and one thing you would change about it.
  3. This role works in the framework and stack named in the job description. Which parts of it have you shipped production code in, and for how long?
  4. The job description sets out the location, working pattern and start date. Do those work for you, what is your notice period, and what compensation range are you expecting?

Competency 1

Component design and state

Most frontend bugs are state bugs: stale data, two sources of truth, effects that run at the wrong time. Engineers who know where state should live build interfaces that stay correct as they grow.

  1. Question 1: Work sample, 20 minutes: here is a 50‑line React and TypeScript search‑as‑you‑type component from an anonymized pull request.

    It copies a prop into state, fetches on every keystroke with no cancellation, so a slow early response can overwrite a later one, renders the results as clickable divs and has no label on the input. Review it out loud as you would for a teammate. Rate the state findings here and the accessibility findings under accessibility.

    Follow up with

    • Which of your comments would block the merge, and which are suggestions?
    • How would you stop an older response from overwriting a newer one?
    • Where should the results live if two other components need them?
    Strong answerSana Mirza
    “First, the fetch in the effect. It fires on every keystroke and nothing cancels the old request, so if the response for “sh” lands after the one for “shoes,” it overwrites the right results. That’s a real bug, so it blocks. I’d abort the previous request in the effect’s cleanup with an AbortController, or, since we use a query library elsewhere, key the query on the term and let it drop stale responses. A debounce I’d suggest, not block on. Second blocker: initialQuery is copied into state on mount, so if the parent changes it, this component never updates. Derive it from the prop, or let the parent own it. Naming and inline styles are nits.”
    What makes it strongFinds the race between responses and fixes it by cancelling or ignoring stale requests (an AbortController, a request id, or a data‑fetching library that handles it). Spots the prop copied into state and derives it instead. Separates blocking comments from optional ones and explains each.
    Weak answerDivya Shetty
    “So, a few things. I’d rename data to something like results, and the inline styles should move to a CSS module. The useEffect is a bit messy. Honestly I’d probably rewrite it with a data‑fetching library, it would be much cleaner. Otherwise the logic looks fine to me: it fetches and shows the results.”
    What gives it awayComments on naming and formatting only, misses the race, or rewrites the component in a new library without saying what was wrong. Adds more state or another effect to fix a bug that state caused.
  2. Question 2: Tell me about a frontend bug caused by state that took you a long time to find. What was going on?

    Follow up with

    • How did you narrow it down?
    • What did you change so that kind of bug was harder to write?
    Strong answerDivya Shetty
    “On our expenses screen, the monthly total sometimes showed an old month after you switched. With the network throttled I saw responses arriving out of order, but even with one request the total lagged. A console log showed the handler reading an old month: the callback was created once in an effect with an empty dependency list, so it closed over the first month forever. A stale closure. The quick fix was adding the month to the dependencies. The real fix was deleting the separate total state and computing it from the fetched transactions, so there’s one source of truth. Then I added a test that switches months twice quickly.”
    What makes it strongDescribes a specific bug (a stale closure, server data copied into two stores, an effect firing twice), the tools used to narrow it (browser devtools, the network panel, a failing test), the root cause, and a structural fix such as a single source of truth.
    Weak answerOliver Bennett
    “We had a dropdown that sometimes showed the old value after saving. I spent a good while on it. In the end I wrapped the update in a setTimeout of zero and added a key to force a remount, and that sorted it. I’m not entirely sure why the timeout worked, but it’s been fine since.”
    What gives it awayFixed it by adding a timeout, a key or another effect until the symptom went away, and cannot explain why the fix worked.
  3. Question 3: What would you do if a page you own keeps server data in a global client store, and users often see stale records after editing them?

    Follow up with

    • What would you change first, and how would you ship it safely?
    • What would you leave alone?
    Strong answerSana Mirza
    “First I’d split what’s in the store into server data, like the order list and product details, and UI state, like which filter panel is open. Server data shouldn’t sit in a hand‑written global store, because nothing tells it when it’s stale. I’d move it to a query cache and, after every edit, invalidate the queries that edit touches so the list refetches. I’d do it one screen at a time, starting with the order edit page where most complaints come from, behind a test that edits a record and checks the list shows the change. The UI state I’d leave in the store; it’s genuinely client‑only and works fine.”
    What makes it strongSeparates server state from UI state, proposes a query cache with invalidation after each mutation (or the framework’s own data loading), migrates one screen at a time behind tests, and leaves genuinely client‑only state where it is.
    Weak answerOliver Bennett
    “I’d add a refetch after each save, so when someone edits a record the page calls the API again and reloads everything. It’s not elegant, but it’s reliable. Then I’d go through the other screens and do the same wherever someone reports it.”
    What gives it awayProposes rewriting the app around a new state library, or patches each screen with manual refetches and no plan.
RatingWhat it looks like
5 · StrongFinds the race and the derived‑state bug unprompted, explains where each piece of state belongs and why, and proposes fixes that remove a whole class of bug rather than one symptom.
3 · MixedFinds the main state bug in the review and knows where state belongs in simple cases. Needs prompting on races, derived state, or server versus client state.
1 · WeakMisses the response race and the copied prop in the review, even with a hint. Fixes state bugs by adding more state, effects or timeouts.

Competency 2

Accessibility

Keyboard and screen reader users are customers, and accessibility is decided in markup and interaction code, which frontend engineers write. Building it in costs far less than retrofitting it after a complaint or an audit.

  1. Question 4: Continuing the component review: how would a keyboard‑only user and a screen reader user experience this search, and what would you change?

    Follow up with

    • How would you check your fix without a specialist?
    • When would you reach for ARIA attributes, and when not?
    Strong answerOliver Bennett
    “With only a keyboard, you can type in the input, but the results are divs with click handlers, so you can’t tab to them. A screen reader user hears “edit text” with no name, because there’s no label, and nothing tells them results appeared. So: a real label on the input, visible if design allows. For the results, the simplest fix is a list of buttons or links, which are focusable and announced for free. For arrow‑key navigation, I’d use a tested combobox pattern rather than hand‑roll the ARIA; it’s easy to get wrong. Then I’d check it with the keyboard alone, then VoiceOver or NVDA, then axe for anything I missed.”
    What makes it strongNames the missing label, the divs that cannot be focused or announced, and the missing arrow‑key support. Prefers native elements or a tested accessible combobox pattern over hand‑rolled ARIA, and checks the fix with the keyboard, a screen reader and an automated checker such as axe.
    Weak answerDivya Shetty
    “I’d add an aria‑label to the result divs and a placeholder on the input that says Search, so screen readers know what it is. Then I’d run Lighthouse and check the accessibility score. Beyond that, I think the designer would need to tell us what they want for keyboard users.”
    What gives it awayAdds an aria‑label to the div and calls it done, or says accessibility is the design team’s job. Relies on an automated checker alone.
  2. Question 5: Tell me about an accessibility problem you found and fixed in something you built. How was it found?

    Follow up with

    • How did you test the fix?
    • What did you change in how you or your team work afterwards?
    Strong answerOliver Bennett
    “On a benefits application form, a user wrote in: after closing an “Are you sure?” dialog, their screen reader seemed to lose its place and they had to start the page again. On close, focus went to the top of the document instead of back to the button that opened the dialog. I made focus return to the trigger and tested it with NVDA and VoiceOver, not just the keyboard. Then I found the same bug in four other dialogs, each built separately. We moved them all onto one dialog component, and I added automated accessibility checks to our component tests, plus a test that focus returns on close. It hasn’t come back.”
    What makes it strongGives a specific problem (focus lost when a modal closes, low contrast, an unlabeled icon button), how it was found, the fix and how it was checked with real assistive technology. Describes a lasting check, such as a lint rule or automated accessibility checks in tests.
    Weak answerSana Mirza
    “We do accessibility. All our product images have alt text, which we added after an audit flagged it. I can’t think of a specific issue I’ve fixed beyond that, to be honest. The rest is mostly handled by the design team and the component library.”
    What gives it awayCannot name a specific issue, or describes accessibility only as alt text on images. Fixed one instance with nothing to stop it returning.
RatingWhat it looks like
5 · StrongFinds keyboard, focus, labeling and announcement problems unprompted, prefers native semantics, tests with a keyboard, a screen reader and automated checks, and builds those checks into the team’s workflow.
3 · MixedSpots the obvious gaps (labels, focus, keyboard access) and knows the native elements to use. Has not tested with a screen reader, or adds ARIA where a native element would do.
1 · WeakTreats accessibility as alt text or as someone else’s job. Misses the unlabeled input and the unfocusable results in the review.

Competency 3

Web performance

Users feel slow pages on mid‑range phones and patchy networks, and Google reports field performance as Core Web Vitals. Frontend engineers decide most of what ships to the browser, so they own most of the fixes.

  1. Question 6: A product listing page feels slow on mid‑range phones, and field data shows poor Largest Contentful Paint and Interaction to Next Paint.

    Talk me through how you would find the cause before changing any code.

    Follow up with

    • Which tools would you open first, and what would you look for?
    • How would you know the fix helped real users, not just your laptop?
    • What changes if the slowness started with the release last week?
    Strong answerSana Mirza
    “First, field data split by device, because lab scores on my laptop will look fine. If it’s mid‑range Android, I’d profile on one, a real phone or Chrome throttled to that CPU on slow 4G. For LCP, find the largest element, probably the first product image, and when it starts loading. Usually it’s lazy‑loaded when it shouldn’t be, or a 2,000‑pixel image in a 400‑pixel slot, or a font or script blocking render. For INP, record a trace while tapping filters and look for long tasks and the whole grid re‑rendering. If it started with last week’s release, I’d diff that release first. Then check field data again two weeks after the fix.”
    What makes it strongSeparates lab data from field data, profiles on a throttled or real mid‑range device, and looks for the causes of each metric: a late or oversized hero image and render‑blocking resources for LCP, long tasks and heavy re‑renders for INP. Measures before and after against field data.
    Weak answerOliver Bennett
    “I’d go through the standard checklist: minify the JavaScript, make sure we’re on a CDN, lazy‑load all the images and compress everything. Then I’d run Lighthouse on my machine before and after, and if the score goes up, that’s a good sign it’s fixed.”
    What gives it awayLists generic tips (minify, use a CDN, lazy‑load everything) without measuring anything. Tests only on a fast laptop and declares it fixed.
  2. Question 7: Tell me about a performance improvement you shipped. How did you measure it before and after?

    Follow up with

    • What did it cost in complexity?
    • What stopped it from regressing later?
    Strong answerSana Mirza
    “Field data had our category pages at an INP of about 450 milliseconds on mid‑range phones. Profiling on a budget Android phone showed every filter tap re‑rendered all sixty product cards, and each one formatted its price with a heavy library. I switched to the built‑in Intl API, which dropped a 70 KB dependency, and memoized the cards so a tap only re‑rendered the ones that changed. Same measurement two weeks later: about 180 milliseconds at the 75th percentile. The cost was a slightly more involved state setup, which I documented. To hold the gain, we added a CI budget that fails the build if the page grows by more than 10 KB.”
    What makes it strongNames a measured problem, the cause found, the change (code splitting, image sizing, removing a heavy dependency, fewer re‑renders) and before‑and‑after numbers from the same measurement. Added a performance budget or a CI check to hold the gain.
    Weak answerDivya Shetty
    “Our dashboard felt a bit slow, so I wrapped most of the components in React.memo and added useMemo around the calculations. It felt snappier after that. We didn’t really measure it, but nobody has complained about speed since.”
    What gives it awayOptimized something because it seemed slow, with no measurement, or added memoization everywhere. Cannot say whether users noticed.
RatingWhat it looks like
5 · StrongMeasures first on realistic devices, ties each fix to the metric it moves, confirms the gain in field data, and adds budgets or checks so it holds.
3 · MixedKnows the main metrics and tools, and finds common causes such as large bundles or unsized images. Needs prompting to use field data or a realistic device.
1 · WeakOffers generic tips without measuring, and cannot say what Core Web Vitals measure or how to profile a page.

Competency 4

Testing and quality

Interfaces change every sprint, and clicking through them by hand does not scale. Frontend engineers need tests that catch real regressions without breaking on every markup change.

  1. Question 8: How do you decide what to test in a frontend feature, and with which kind of test? Use the last feature you shipped as the example.

    Follow up with

    • What do you test through the browser, and what in isolation?
    • How do you find elements in a component test?
    • Which test in your current suite would you delete, and why?
    Strong answerOliver Bennett
    “The last thing I shipped was a date‑of‑birth field with validation. The validation logic, leap years and future dates, I unit tested; it’s pure and has lots of cases. The component I tested with Testing Library the way a user would: find the inputs by label, type an impossible date, check the error appears and is linked to the field. I don’t assert on internal state or class names; they change in refactors and no user sees them. Then one Playwright test for submitting the whole form, because that’s what loses us applications if it breaks. The test I’d delete checks which props a component received. It breaks on every refactor and has never caught a bug.”
    What makes it strongDescribes a deliberate mix: unit tests for logic, component tests that act as a user would (finding elements by role and label, as Testing Library encourages), and a few end‑to‑end tests for critical journeys in a tool such as Playwright or Cypress. Avoids testing implementation details and can say why.
    Weak answerDivya Shetty
    “We mostly use snapshot tests for components, so if anything in the UI changes we’ll see it. For logic I sometimes check the component’s internal state, like that isOpen becomes true. QA does the end‑to‑end testing, so I don’t really write those.”
    What gives it awayRelies on snapshots or tests internal state and private functions, or has no tests and leaves it to QA. Cannot explain why a given test exists.
  2. Question 9: What would you do if a designer’s change to a shared Button component broke 40 snapshot tests across the app?

    Follow up with

    • What do those 40 tests protect against?
    • What would you put in their place, if anything?
    Strong answerOliver Bennett
    “First I’d ask what those forty snapshots were protecting. Probably nothing beyond “the button rendered with these class names,” which is exactly why one design change broke them all. I’d read a few diffs to confirm. Then I’d replace the broad snapshots with behavior tests where behavior matters, like submitting the form calls save, and move visual checks into the component library: screenshot comparisons of the Button itself, so a visual change is reviewed once, on purpose. Then delete the old snapshots. What it tells me is that the suite was testing markup, not behavior.”
    What makes it strongQuestions what the snapshots were catching, replaces broad snapshots with behavior tests and visual regression checks on the component library, and reviews each visual change on purpose. Treats the incident as a sign the suite was testing markup, not behavior.
    Weak answerSana Mirza
    “I’d run the update‑snapshots command and commit them. The designer changed the button on purpose, so the snapshots are just out of date. It takes a minute. If they keep being annoying, we could probably delete them.”
    What gives it awayRuns the update‑all‑snapshots command without reading the diffs, or deletes the tests with nothing in their place.
RatingWhat it looks like
5 · StrongChooses the right level of test for each risk, writes tests the way a user interacts, keeps end‑to‑end tests few and stable, and removes tests that cost more than they catch.
3 · MixedWrites component tests for the main behavior and a few end‑to‑end tests. Sometimes tests implementation details, or needs prompting on what not to test.
1 · WeakRelies on manual checks or snapshots nobody reads, and tests internal state instead of behavior.

Competency 5

Working with design and product

Frontend engineers turn designs into working software and see the gaps first: missing states, edge cases, interactions that cannot be built accessibly. How they raise those gaps decides whether the result matches the intent.

  1. Question 10: What would you do if a design arrives with only the happy path (no loading, empty or error states, and no mobile layout) two days before the sprint starts?

    Follow up with

    • What would you ask the designer, and how?
    • What would you build if the designer were away all week?
    Strong answerDivya Shetty
    “First I’d go through the mockup and list every state that’s missing: loading, empty, error, the mobile layout, and a few edge cases like a very long name or a zero balance. I’d send that list to the designer the same day with a rough proposal for each, so it’s quick to answer: “For loading, can we use the skeleton from the design system? For empty, here’s a draft line of copy.” If she were away all week, I’d build from the design system’s existing patterns rather than invent new ones, and write down what I chose in the ticket so she can review it when she’s back. The point is not to block the sprint, and not to surprise anyone.”
    What makes it strongLists the missing states, raises them early with questions or rough proposals, falls back on the design system’s existing patterns, and records what was decided. Neither blocks nor silently invents.
    Weak answerSana Mirza
    “I’d build what’s in the design. If there’s no loading or error state, I’d show a spinner or nothing, and if QA or the product manager raises it, we’d add it next sprint. The mobile layout should mostly work with flexbox anyway.”
    What gives it awayBuilds exactly what the mockup shows and leaves the rest for QA to find, or invents the missing states without telling anyone.
  2. Question 11: Tell me about a time you pushed back on a design because it could not be built well, for accessibility, performance or effort. What happened?

    Follow up with

    • What alternative did you bring?
    • What was decided in the end?
    Strong answerDivya Shetty
    “Our designer wanted the account dashboard to animate six charts in at once. On our users’ typical phones, that dropped frames and pushed the balance down the screen, and the balance is what people open the app to see. I didn’t just say no. I built a quick prototype both ways and showed her a side‑by‑side recording on a budget phone, then suggested showing the balance immediately and animating only the chart on screen. She agreed to one animation but asked for a nicer transition on the balance, which was fair, so I built that. It shipped like that, and now she sends me animated designs early.”
    What makes it strongExplains the constraint in terms of users, brings an alternative or a quick prototype, respects the designer’s goal, and commits once a decision is made.
    Weak answerOliver Bennett
    “Designers sometimes hand over things that just aren’t accessible, like a custom slider with no keyboard support. I told them we wouldn’t build it because it fails WCAG, and we used a standard input instead. They weren’t thrilled, but accessibility isn’t optional, so I didn’t really see it as a discussion.”
    What gives it awaySaid no without an alternative, or shipped something different from the design without discussing it. Talks about designers as obstacles.
  3. Question 12: Tell me about a component you added to, or changed in, a shared component library or design system.

    Follow up with

    • How did you make sure other teams could use it?
    • How did you handle a breaking change?
    Strong answerDivya Shetty
    “I added a currency input to our design system, because three teams had each built their own and they all formatted rupees differently. I started by asking those teams what they needed: decimals or not, lakh and crore grouping, negative amounts. I designed the props from that, kept it a native input with a visible label, and wrote docs with an example for each team’s case. Later we had to rename a prop, which was a breaking change, so I first shipped the new name alongside the old one with a deprecation warning, posted migration notes in each team’s channel, and removed the old prop two weeks later in a major version.”
    What makes it strongDescribes designing the component API with its users, building accessibility in, documenting it with examples, and shipping a breaking change with a version bump, migration notes and notice to the teams affected.
    Weak answerSana Mirza
    “The shared Card component didn’t have the badge we needed, so I copied it into our folder and added the badge there. It was quicker than waiting for the design‑system team’s review. We have a few local versions like that now, and it works for us.”
    What gives it awayCopied the shared component and changed it locally instead, or shipped a breaking change with no notice.
RatingWhat it looks like
5 · StrongFinds gaps early, proposes concrete options in user terms, commits once decided, and builds shared components that other teams can adopt and upgrade safely.
3 · MixedRaises missing states and constraints with designers and works well with them. Needs prompting to propose alternatives or to think about other teams using shared components.
1 · WeakBuilds only what the mockup shows, invents or ignores missing states, and pushes back without alternatives.

Never ask

  • Don’t ask a candidate’s age, or their graduation year to work it out. Why: age says nothing about frontend skill, and age‑based decisions are unlawful in many places.
  • Don’t ask about marital status, children, pregnancy or plans to start a family. Why: none of it is job‑related, and the question is still put mostly to women, which makes it discriminatory as well as irrelevant.
  • Don’t ask about religion, caste, community or the origin of a surname, directly or by proxy (“What does your father do?”). Why: in India these questions signal caste and religion, which have no bearing on the job.
  • Don’t ask “Where are you from originally?” or “What is your native place?” Why: it invites judgments about region, language and community. If location matters, ask whether the candidate can work from the job’s location.
  • Don’t ask about health conditions or disabilities, including whether the candidate uses assistive technology, even though the role covers accessibility. Why: the only relevant question is whether they can perform the essential functions of the job, with or without reasonable accommodation. Offer every candidate adjustments to the exercise.
  • Don’t ask for salary history where the law restricts it: many US states and cities do, and the EU Pay Transparency Directive requires member states to. Why: it carries past pay gaps into the new offer. Ask for the expected range; in India, where current pay is commonly asked, still set the offer from the role’s band.
  • Don’t ask the candidate to build a screen of your real product or redesign your live site as a take‑home. Why: that is unpaid work. Use a prepared, anonymized component like the one in this kit, which has nothing to ship.

Making the decision

Each interviewer rates their competencies alone, against the anchors, before the debrief. The must‑haves are component design and state, accessibility, and testing and quality. Any 1 on a must‑have is a no, and so is any competency rated 1 by two interviewers. A hire needs an average of 3.5 or higher. The hiring manager decides after the debrief and records the component‑review findings and quotes behind each rating.

Questions people ask

What should a frontend engineer coding interview test?
The work the job involves: reading and fixing a component, handling state and data fetching, making an interface accessible, and explaining trade‑offs. A 20‑minute review of a prepared component shows more than an algorithm puzzle. Use the same component and the same planted issues for every candidate.
Should we test React knowledge specifically?
Test it if the job uses React daily and you cannot afford ramp‑up time, but weigh the underlying skills more. State, the DOM, accessibility and performance carry over between frameworks, and an engineer strong in those learns a new framework quickly. Say in the invitation which framework the exercise uses.
How do we assess accessibility if nobody on the panel is an expert?
Plant two or three clear issues in the review exercise, such as an unlabeled input and a clickable div, and write the expected findings down before the first interview. Then ask how the candidate would check a fix. That works without a specialist on the panel.
How is a frontend interview different from a general software engineer interview?
It keeps the core of problem solving and code quality, but moves the evidence to the browser: state and rendering, accessibility, performance on real devices, and work with designers. For a full‑stack role, combine this kit with the software engineer kit and keep only the competencies the job needs.

A kit is step one.

Itya holds every interviewer to the same rubric, records the interview, and drafts the scorecard with the quotes behind each rating. The AI drafts; your team decides. Free plan, unlimited teammates.