Build interactive, accessible components and small apps in React.
Progress
0 / 59 completed
Showing 59 questions
Accordion
Build an accessible accordion with expandable sections and full keyboard support.
Accordion II: Single Open, Controlled
Extend an accordion so only one section is open at a time, with optional collapsing and a controlled API.
Analog Clock
Draw a ticking analog clock in SVG with correctly rotated hour, minute and second hands and an accessible name.
Auth Code Input
Build a one-time-code input split into digit boxes with auto-advance, backspace, arrow keys and paste support.
Autocomplete / Typeahead
Build an accessible combobox that searches an async API with debouncing, caching and race-condition handling.
Birth Year Histogram
Bucket a list of birth years into a bar-chart histogram with adjustable bucket size and an accessible data-table view.
Connect Four
Build Connect Four with gravity drops, last-move win detection, column-based keyboard controls and announced moves.
Contact Form
Build a contact form with accessible inline validation, a submitting state and a success message.
Data Table
Build a paginated users table with a rows-per-page selector and previous/next navigation.
Data Table II: Sorting and Filtering
Add sortable column headers and a search filter to a paginated users table.
Data Table III: Generic Columns
Turn a users-only table into a reusable DataTable driven by column definitions with renderers, sorting and typed filters.
Date Picker
Build a date input with a calendar dialog following the WAI-ARIA date picker pattern: grid keyboard navigation, focus trap and return.
Dice Roller
Roll a chosen number of six-sided dice, draw each face with CSS pips and announce the total accessibly.
Digital Clock
Build a ticking digital clock that stays aligned to real seconds, with a 12/24-hour toggle and clean timer teardown.
Drag-and-Drop Sortable List
Build a reorderable list with pointer dragging and a full keyboard alternative: pick up, move, drop or cancel, with announcements.
Dropdown Menu
Build an accessible menu button: open and close, arrow-key and typeahead navigation, outside click and focus return.
File Explorer
Render a nested folder/file tree where folders expand and collapse, sorted folders-first.
File Explorer II: Keyboard Tree
Turn a file explorer into a WAI-ARIA tree view with roving focus, arrow-key navigation and type-ahead.
Flight Booker
Build a one-way or return flight form with date constraints, disabled states and a booking confirmation.
Generate Table
Generate a numbered table from row and column inputs, filled row by row, column by column or in a snake pattern.
Grid Lights
Build a grid of toggle lights that, once all are lit, switch off one by one in reverse activation order.
Hello World Counter
Build a counter with increment, decrement and reset that never drops below zero and announces its value.
Holy Grail Layout
Build the classic header, three columns and footer layout with CSS Grid, landmarks, a sticky footer and responsive stacking.
Image Carousel
Build an accessible image carousel with previous/next controls, wrap-around and dot navigation.
Image Carousel II: Infinite Transitions
Extend the image carousel with sliding animations that loop seamlessly in both directions.
Infinite Scroll Feed
Build a cursor-paginated feed that loads more posts as you scroll, with abort handling, retries and the ARIA feed pattern.
Job Board
Build a paginated job board on a Hacker News-style API: fetch ids, then load job details in parallel pages.
Kanban Board
Build a kanban board with normalised state, adding and deleting cards, and moving cards between columns by pointer or keyboard.
Like Button
Build a toggle Like button that talks to a flaky API, with pending, error and accessible pressed states.
Memory Game
Build a card-matching memory game with timed flip-back, move counting and screen-reader friendly announcements.
Modal Dialog
Build a reusable modal dialog with a portal, labelled dialog semantics, Escape and backdrop dismissal, and focus restoration.
Mortgage Calculator
Calculate the monthly payment, total cost and total interest of a fixed-rate loan as the user types.
Multi-step Form Wizard
Build a three-step sign-up wizard with per-step validation, a progress indicator, focus management and a review step.
Nested Checkboxes
Build a checkbox tree where parents reflect their children as checked, unchecked or indeterminate.
Pixel Art Editor
Build a 16×16 pixel-art editor with a colour palette, draw/erase tools, click-and-drag painting and keyboard drawing.
Progress Bar
Build a reusable, accessible progress bar that clamps its value and shows the percentage.
Progress Bars
Each click adds a progress bar that fills from 0 to 100% over two seconds, driven by requestAnimationFrame.
Progress Bars II: Concurrency Limit
Extend the progress bars so at most three fill at once while the rest wait in a queue.
Progress Bars III: Pause and Resume
Queue-limited progress bars that can be paused and resumed without losing progress, driven by one shared clock.
Selectable Cells (Drag Select)
Build a grid where dragging selects a rectangle of cells, with modifier-key multi-select and a full keyboard equivalent.
Sign-up Form Validation
Build a sign-up form with on-blur validation, a live password checklist, cross-field checks and a show-password toggle.
Star Rating
Build a star rating input with hover preview, keyboard support and a clear button, built on native radios.
Stopwatch
Build an accurate stopwatch with start, stop, lap and reset, based on timestamps rather than counting ticks.
Tabs
Build a tabs component that shows one panel at a time, with the correct tab roles and selected state.
Tabs II: Keyboard Accessible
Add roving tabindex, arrow-key navigation and automatic or manual activation to a tabs component.
Temperature Converter
Two linked inputs, Celsius and Fahrenheit, that update each other and handle invalid input gracefully.
Tic-tac-toe
Build a two-player tic-tac-toe game with win and draw detection, a live status and a keyboard-navigable board.
Tic-tac-toe II: N × N, M in a Row
Generalise tic-tac-toe to a configurable N × N board where M marks in a row win, with an efficient last-move win check.
Toast Notifications
Build a toast system with a context API, live-region announcements, auto-dismiss that pauses on hover or focus, and a visible limit.
Todo List
Build a todo list with add, complete, delete and filters, using semantic forms and good focus management.
Tooltip and Popover
Build an accessible hover/focus tooltip and a click-triggered popover, and explain when to use each.
Traffic Light
Build a traffic light that cycles through configurable states with timers, a pause control and clean effect teardown.
Transfer List
Move checked items between two lists with per-list select-all and bulk transfer controls.
Tweet Card
Build a social post card with semantic markup, relative timestamps, compact counts and accessible action buttons.
Users Database (CRUD)
Build a small users database with search, a keyboard-accessible listbox, and create, update, delete and cancel actions.
Virtualized List
Render a 10,000-row list smoothly by windowing: only the visible rows plus overscan are in the DOM.