Loading lesson…
Level 1 · Apprentice0 XP
Reading what the user types, checking it, and sending it.
Step 1 / 5
ProblemA sign-up form shows an error and clears every field. The submit button can be pressed three times and creates three accounts. There is no sign that anything is happening.
← → step
Before this: Context and shared state
🛠️ 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.Build a sign-up form with email and password. Show each error next to its field, only after the user leaves the field. Disable the button until both are valid and while it is sending. Keep what was typed when the server returns an error.