StaffCoder
React (Typescript)
13 modules · 53 challengesSign up
Modules13 modules · 53 challenges
Extracting stateful logic into reusable units tested on their own with renderHook. Learners rebuild useDebounce, useLocalStorage, useFetch and useForm, making real design calls about return shape, derived vs. stored values, dependencies and cleanup.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

5 challenges

Search Suggestions Debounce Hook

Sign up to unlock
—No data yetmedium
About this challenge

Build a useDebounce hook that only reports a value once it stops changing, clearing pending timers as it goes. A quick task to show you can package timing behaviour into a clean hook.

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

Form Draft

Sign up to unlock
—No data yetmedium
About this challenge

Build a useLocalStorage hook so a half-finished form survives a page refresh. A simple task to show you can sync React state with browser storage safely.

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

Resource Loader Hook

Sign up to unlock
—No data yetmedium
About this challenge

Build a useFetch hook that refetches when its URL changes and ignores a response that arrived for the old one. A good task to show you understand where race conditions come from.

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

Settings Form State Hook

Sign up to unlock
—No data yetmedium
About this challenge

Bring a store's checkout form to life - track what the shopper enters, flag invalid or missing details, and let the order go through only when every field is valid.

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

Shopping Cart Hook

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

Build a working shopping cart where customers can add items, change how many they want, remove things, and see the price total update automatically.

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.