Premium

React Transfer List (Select + Move Between Two Lists)

By FrontendAtlas Team · Updated Jan 30, 2026

Build a React transfer list UI with two panels and checkbox selection. Users select items in one list and move them to the other with arrow buttons. Preserve item order, clear selection after transfer, and disable buttons when nothing is selected. Include keyboard navigation, focus…

  • Render two lists: Top and Bottom.
  • Each list shows items with a checkbox to select.

What you’ll build / What this tests

This premium react coding focuses on React Transfer List (Select + Move Between Two Lists). You’ll apply react and state thinking with medium level constraints. The prompt emphasizes Build a React transfer list UI with two panels and checkbox selection. Users select items in….

Learning goals

  • Translate the prompt into a clear react API signature and return shape.
  • Apply react, state, event-handlers techniques to implement react transfer list (select + move between two lists).
  • Handle medium edge cases without sacrificing readability.
  • Reason about time/space complexity and trade-offs in react.

Key decisions to discuss

  • Define the exact input/output contract before coding.
  • Choose iteration vs higher-order methods for readability.
  • Prioritize predictable edge-case handling over micro-optimizations.

Evaluation rubric

  • Correctness: covers required behaviors and edge cases.
  • Clarity: readable structure and predictable control flow.
  • Complexity: avoids unnecessary work for large inputs.
  • API discipline: no mutation of inputs; returns expected shape.
  • Testability: solution is easy to unit test.

Constraints / Requirements

  • Render two lists: Top and Bottom.
  • Each list shows items with a checkbox to select.
  • Provide two transfer buttons between lists: "↓" moves selected Top items to Bottom; "↑" moves selected Bottom items…
  • Disable "↓" when no Top items are selected; disable "↑" when no Bottom items are selected.
  • After transfer, moved items must be unselected in the destination list.
  • Preserve item order within each list (append moved items to the end of destination list).
  • Selecting items in Top and clicking "↓" removes them from Top and appends them to Bottom.
  • Selecting items in Bottom and clicking "↑" removes them from Bottom and appends them to Top.
  • Buttons do nothing when disabled.
  • Selections are tracked by stable id and cleared after transfer.

Mini snippet (usage only)

// Example usage
const input = /* react transfer list (select + move between two lists) input */;
const result = solve(input);
console.log(result);

// Edge case check
const empty = input ?? null;
const fallback = solve(input);
console.log(fallback);

// Expected: describe output shape, not the implementation
// (no solution code in preview)

Common pitfalls

  • Mutating inputs instead of returning a new value.
  • Skipping edge cases like empty input, duplicates, or nulls.
  • Overlooking time complexity for large inputs.

Related questions

Upgrade to FrontendAtlas Premium to unlock this challenge. Already upgraded? Sign in to continue.