StaffCoder
React Native
React NativeReact Native 0.81
12 modules · 47 challengesSign up
Modules12 modules · 47 challenges
A cluster of four assessments that check the fundamentals of React state and composition in a mobile UI — using `useState` in the right owner, driving stateless children through props / callbacks / slots, deriving every read-only value on each render rather than mirroring it into state, and updating state immutably. Each problem isolates one small business control (dispensing, allocating, reporting, signing in) so the composition and derivation choices are what pass or fail the tests, not the domain.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Pharmacy Dispense Counter

Sign up to unlock
—No data yeteasy
About this challenge

A pharmacist's control that builds a prescribed quantity from the pack sizes actually stocked. Derives the dispensed total, units still owed, and whether the prescription can be met exactly from the packs on hand — flagging over-dispense separately from owing.

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

Salary Deposit Allocation

Sign up to unlock
—No data yeteasy
About this challenge

An employee's control for splitting net pay across several linked accounts. Nudging one percentage stepper redistributes the delta across the others in proportion, with a documented rounding rule so two identical sessions produce the same numbers.

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

Field Service Report Section

Sign up to unlock
—No data yeteasy
About this challenge

A reusable collapsible section shell for the field engineer's report screens. Owns its own expanded/collapsed `useState`, unmounts children on collapse rather than hiding them, exposes a title bar with a live child-count badge plus optional `action`, `footer`, and `empty` slots, and composes children opaquely without inspecting or cloning them.

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

Site Crew Sign-In

STAR
Solving it completes the module
0%0 of 1 solvedeasy
About this challenge

A supervisor's sign-in screen for a construction site — the roster renders in a `FlatList` keyed by worker id, each row toggles the worker between on-site and absent, and any worker whose required certification has lapsed or is missing stays blocked with the reason shown. Header keeps live counts and a per-trade shortfall against the day's minimum crew.

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.