← Questions

Accessible expand-and-collapse tree in React

0
AppleCodingLast asked Jul 2026

A coding interview question asked in Apple's technical phone screen, last asked Jul 2026. It tests react, frontend and accessibility.

Build a React component that renders nested data as a tree. Branches can be expanded and collapsed to any depth, and each branch keeps its own open or closed state while the user toggles others.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Apple · Technical phone screen · Last asked Jul 2026

What it tests

react · frontend · accessibility · recursion

Your code and the AI tutor open when you unlock this question.