React mock interview.

The React and UI machine coding round, rehearsed for real: build a component or hook that works in the browser, checked by tests, then answer the follow-ups and read your score.

  • Free for Google, Meta, Amazon, Microsoft and Flipkart
  • Real editor and tests
  • Every company with Pro

How you are scoredout of 100

60
The workTests passed, or your design against the model answer
30
Follow-upsThe questions an interviewer asks next
10
TimeFinishing within the round's time

Build your interview

Pick up to 6 questions, or add them at random. They share one clock and open in any order.

What the React round tests

The React round is usually machine coding: in 20 to 60 minutes, build something small but complete, such as an autocomplete, a modal, a tabs component, an infinite list or a custom hook. Interviewers watch where you put state, how you handle effects, and whether the result works with a keyboard.

This mock interview runs your component in a real browser preview with tests that click, type and check what is on screen. When the clock stops, you answer follow-ups about re-renders, accessibility and edge cases before comparing with the model answer.

State in the right place

Which component owns each piece of state, what is derived instead of stored, and how data flows down and events flow up.

Effects that clean up

Fetching, timers and subscriptions that cancel on unmount or when inputs change, without race conditions.

Accessibility

Keyboard use, focus management and ARIA roles, which tests and interviewers both check.

The states users see

Loading, empty, error and long-content states, not only the happy path.

How to spend the clock

Interviewers notice how you use the time as much as the answer. A plan that works for most questions in this round:

  1. First 5 minutes

    Requirements and a sketch

    List what the component must do, the props it takes and the state it holds. Agree what is out of scope.

  2. Next third

    Make it work

    Render the basic markup and wire the main interaction. Press Run often and watch the preview.

  3. Middle

    States and keyboard

    Add loading, empty and error states, keyboard support and focus handling. Submit to see which tests still fail.

  4. Last 5 minutes

    Polish and explain

    Extract a hook if it helps, remove unused state and explain how you would test and scale it.

Questions this round asks

  • Inputs: autocomplete or typeahead, a multi-select, a form with validation
  • Overlays: a modal or dialog with focus trap, a dropdown menu, a tooltip
  • Data views: a sortable table, pagination, an infinite scrolling list
  • Custom hooks: useDebounce, useFetch with cancellation, useLocalStorage
  • Layout and CSS: responsive grids, sticky headers, media queries
React machine coding questions

Mistakes that cost points

  • Storing values that can be derived, then letting them drift out of sync.
  • Fetching in an effect without cancelling the previous request.
  • Building with divs and onClick only, so nothing works from the keyboard.
  • Spending the whole round on styling before the behaviour works.

How the mock interview works

The same four steps as a real frontend round, from the first question to the debrief.

  1. 1Step 1

    Build your interview

    Pick how many questions you want from each round, the level and a company. Google, Meta, Amazon, Microsoft and Flipkart are free with an account; every other company is in Pro.

  2. 2Step 2

    Solve them against the clock

    The room goes full screen: your questions down the left, the problem beside a real editor with tests, and one clock for the whole set. Open the questions in any order.

  3. 3Step 3

    Answer the follow-ups

    Then the interviewer asks follow-up questions. Answer each one out loud, open the model answer, and grade yourself as strictly as an interviewer would.

  4. 4Step 4

    Read your debrief

    Tests or design, follow-ups and time add up to a score out of 100 for each question, with the verdict a debrief would give. Every score is saved to your dashboard.

Questions about this round

What does a React mock interview ask?

A small but complete component or hook built from scratch, such as an autocomplete, a modal or useDebounce, then follow-up questions on state, effects, re-renders and accessibility.

Does the React mock interview run real React?

Yes. Your code runs in a browser preview with React and the DOM, and the tests render your component, click and type into it, and check what appears.

Can I use TypeScript or a UI library?

Write the component in plain React with JSX. UI libraries are not available, as in most machine coding rounds, so you show how you build the behaviour yourself.

Is the React mock interview free?

With a free account you can take it for Google, Meta, Amazon, Microsoft and Flipkart, using their free questions. Pro adds every company and every React question.

JavaScript mock interviewFrontend system design mock interviewAll mock interview rounds