NewFirst lab: React Interview Labs

Become a better developer, one lab at a time.

$ practise →debugging

Hands-on labs built from real production bugs. Read the ticket, fix it in your browser, submit once. Hidden tests decide. We’re starting with React.

50 seats in the private beta. Confirm your email and we’ll write when your seat opens. Privacy

CART-142 · React interview labs
100xcoding.com/labs/react-interview/01-add-two
Y
Case 1 ·The “Add 2” button only adds one item
Cart.jsx
1import { useState } from "react";
2
3export function Cart() {
4 const [qty, setQty] = useState(0);
5
6 function addTwo() {
7 setQty(qty + 1);
8 setQty(qty + 1);
9 }
10
11 return (
12 <button onClick={addTwo}>
13 Add 2 · {qty} in cart
14 </button>
15 );
16}
TerminalMake it happen on purpose, fix it, then run the tests.

A case from React Interview Labs. Try it: Run tests, then Try the fix, then run them again.

React statekey={index}effect cleanupasync/awaitclosuresNode streamsAPI timeoutsTypeScript narrowingSQL indexesN+1 queriescachingrace conditionsReact statekey={index}effect cleanupasync/awaitclosuresNode streamsAPI timeoutsTypeScript narrowingSQL indexesN+1 queriescachingrace conditions

The labs

One platform. A growing shelf of labs.

Each lab is a story-driven set of cases from one area of real engineering work. We open them one at a time, starting with React.

Lab 01 · Opening first

React Interview Labs

The starter lab. React bugs from production, from stale state and key={index} to effect races and missing cleanups. Each one is a trap interviewers love to ask about.

  • State & batching
  • Keys & lists
  • Effects & cleanup
  • Async races
  • Closures
  • Performance
See the first cases
Lab 01100xcoding

React
Interview
Labs

Bugs from production.
One attempt each.

Lab 02 Planned

JavaScript Traps

The language quirks behind real outages: async ordering, this, coercion and closures.

asyncclosuresequality
Lab 03 Planned

Node.js & APIs

Backend tickets: leaking connections, unhandled rejections, slow endpoints, bad retries.

streamserrorstimeouts
Lab 04 Planned

TypeScript in Practice

Types that lie, unsafe casts and generics that fight you, fixed the safe way.

narrowinggenericsany
Lab 05 Planned

Databases & SQL

Missing indexes, N+1 queries, broken migrations and race conditions on write.

indexesjoinslocks
Lab 06 Planned

System Design

Hands-on design cases: caching, queues and rate limits you build and then break.

cachingqueueslimits

The lineup after React may change. Tell us what you want next when you join.

Why it works

Built like a job, not a quiz.

Real tickets, not trivia

Every lab is a story: a product team, a codebase, and a queue of bug tickets with complaints, logs and code that shipped. You fix what broke, the way you would at work.

CART-142

“Add 2” only adds one item

FEED-203

Welcome toast shows twice

SRCH-118

Results for an older query

One graded attempt

Practise as much as you like. When you submit, it counts, just like a real review.

1/1

attempt

Hidden tests decide

Your fix runs against tests you can't see, in a fresh sandbox. No guessing the grader.

  • handles rapid taps
  • no stale reads
  • cleans up on unmount

Learn the why

Every case ends with the idea behind it, so you can explain the fix out loud.

Why does calling it twice only add one?

Both calls read the same qty from this render. Use the updater form.

Zero setup

Editor, preview and tests in one browser tab. Open a case and start fixing.

$ open case 01

✓ editor ready, tests loaded

How a case works

Four steps. One real fix.

  1. 1

    Read the ticket

    A complaint, a few logs, and the code that broke.

  2. 2

    Reproduce it

    Make the bug happen on purpose in the editor.

  3. 3

    Fix it

    Change the code. Run the example tests freely.

  4. 4

    Submit once

    Hidden tests run in a fresh sandbox and score it.

Lab 01 · The starter lab

Starting with React

In React Interview Labs, you’ve just joined Kirana Cart as a frontend engineer. Meera, the tech lead, keeps assigning you tickets. Each one is a React trap interviewers love to ask about, and you’ll learn the idea well enough to explain it.

React 19Testing LibraryRuns in your browserNew cases weekly
  1. 01

    CART-142

    The “Add 2” button only adds one item

    state
  2. 02

    CART-157

    Typing in one row edits another row

    keys
  3. 03

    FEED-203

    The welcome toast shows up twice

  4. 04

    SRCH-118

    Search shows results for an older query

  5. 05

    TIME-090

    The countdown freezes at the first value

  6. 06

    PERF-311

    Typing lags on the product list

  7. More cases unlock during the beta.

Be one of the first 50.

The beta opens with React Interview Labs for a small first cohort, so we can listen closely and ship fast. Free while the beta lasts.

50 seats in the private beta. Confirm your email and we’ll write when your seat opens. Privacy

Questions

What is 100xcoding?

A hands-on practice platform for developers. Each lab is a set of real-feeling production bugs from one area of engineering. You read the ticket, fix the code in your browser, and hidden tests grade your fix.

Is the beta free?

Yes. The private beta is free for the first 50 people. Paid plans come later, and beta members hear about them first.

Why only one graded attempt?

Because interviews and production don't give you retries. Practice runs are unlimited; only the final submission is graded, once.

Do I need to install anything?

No. The editor and the practice tests run in your browser. Graded runs happen in a fresh sandbox on our side.

Is it only React?

No. React Interview Labs is the starter lab. JavaScript, Node.js, TypeScript, databases and system design labs are planned, opened one at a time after the beta.