StaffCoder
React (Typescript)
13 modules · 53 challengesSign up
Modules13 modules · 53 challenges
Async Patterns is a graduated React path where each question hands the candidate a finished UI and asks only for the pure async logic behind it - how requests fire, settle, and update state. It builds from an optimistic like with rollback, through a guarded de-duped load-more feed and a parallel dashboard that degrades on partial failure, up to a fetch-once client-filtered dataset that derives every view from one cached set.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Optimistic Like Toggle

Sign up to unlock
—No data yetmedium
About this challenge

On a social feed, a like button should feel instant - flip the liked state and count immediately, then confirm with the server. The button and the post card are provided and wired, but the optimistic toggle + rollback logic is missing, so clicking does nothing and a failed request is never undone.

Solved in a browser IDE and graded by tests. Sign up to solve

Load-More Feed

Sign up to unlock
—No data yetmedium
About this challenge

In a news reader, a "Load more" button should append the next page of articles. The list and the button are provided and wired, but the paging logic is missing, so the button does nothing, duplicates can slip in, and it never disables at the end.

Solved in a browser IDE and graded by tests. Sign up to solve

Parallel Dashboard Load

Sign up to unlock
—No data yetmedium
About this challenge

An analytics dashboard needs three independent resources at once. The panels and the combined loading UI are provided and wired, but the parallel-load logic is missing, so the dashboard never resolves and one failing request would take the whole page down.

Solved in a browser IDE and graded by tests. Sign up to solve

Client-Filtered Dataset

STAR
Solving it completes the module
—No data yetmedium
About this challenge

A team directory loads its full member roster once, then filters and sorts it live in memory as the user types. The header, toolbar, and results table are provided and wired, but the filter/sort logic and the fetch-once hook are missing, so the table stays empty and typing does nothing.

Solved in a browser IDE and graded by tests. Sign up to solve

We use cookies that are necessary to run Staffcoder, and optional analytics cookies to see which pages get used. Analytics stays off unless you accept. Read our Cookie Policy.