Loading lesson…
Level 1 · Apprentice0 XP
Type props, state, events and hooks so mistakes show up in the editor, not in production.
Step 1 / 6
ProblemA Button receives onClik instead of onClick. Nothing complains. In production, the button silently does nothing.
← → step
Before this: Components and props
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Convert a JavaScript component with loading, error and data flags into TypeScript with typed props and a discriminated union state. Make a wrong prop name fail the build.