StaffCoder
React (Typescript)
13 modules · 53 challengesSign up
Modules13 modules · 53 challenges
In this module, you’ll learn how to avoid redundant data by using derived state - values computed from existing state instead of stored directly. You’ll also explore calculators, functions that automatically keep these values up to date whenever dependencies change.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

3 challenges

Discount & Tax Calculator

Sign up to unlock
33%1 of 3 solvedeasy
About this challenge

Build a checkout calculator that takes a base price, discount % and tax %, then shows the subtotal, tax and final price, with discount applied before tax. A quick task to show you can get a calculation's order right.

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

Grade Average Calculator

Sign up to unlock
0%0 of 1 solvedeasy
About this challenge

Build a component where scores are added one at a time and the running average and letter grade update as you go. A simple task to show you can compute from a growing list and handle the edges safely.

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

EMI Calculator

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

Build a loan calculator with controls for amount, interest rate and tenure, showing the monthly instalment, total repayable and total interest as you move them. A good task to show you can drive a real formula from live inputs.

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.