
Turn the prompt into a behavior
Read the interaction and accessibility requirements. Identify which starter file owns rendering, styling, or state, then implement one behavior.
ExampleFor the character counter, an empty message should report 0 used and 120 remaining. Enter Hello and expect 5 used and 115 remaining, then clear the field.
Check the rendered UI
Open the local Preview and test at a narrow and a wide viewport. Use the console and any visible accessibility checks to investigate failures.
ExampleTab to the textarea and type to the 120-character limit. Check that used and remaining counts update and feedback is announced. Keep the focus indicator visible.
Run the checks for the task type
Run the available checks and use Submit when you are ready. For a TypeScript types challenge, use the type-check workflow. Framework availability and preview status are shown in the app.
ExampleFor a type exercise, verify the required tuple or union inference using the starter assertions. For a React exercise, compare the rendered empty state and visible checks.
Check your work
You have verified a normal case, an empty or invalid case, and the relevant visible checks.
Try it yourself
In Controlled Character Counter, start with an empty textarea, type exactly 120 characters, then try to add one more. Repeat by pasting a string longer than 120 characters. Use the same input in Preview and check the requirement in the prompt.
- What to look for
- At the limit the display should report 120 used and 0 remaining. Check that focus stays on the textarea and that its associated feedback reflects the current value.