Skip to content
Shubham JangleResources
React

Explore topics

Jira Board (Drag n Drop)

Watch the walkthrough
Open on Instagram

Exercise: Build a Kanban board with drag and drop

Render columns such as To Do, In Progress, and Done, each containing cards with stable IDs. Users should move a card across columns and reorder cards within a column. Start with local mock data.

Requirements

  • Separate card records from the ordered list of IDs in each column.
  • Update the source and destination together so a card is never duplicated or lost.
  • Handle empty columns, dropping onto the original position, and canceled drags.
  • Offer a keyboard-accessible move control as well as drag interaction; announce completed moves.

Acceptance checks and discussion

Move a card to an empty column, reorder within a column, and cancel a drag. As an extension, persist changes with optimistic updates and roll back failed saves. Discuss pointer, touch, and keyboard input.

The brief above is an original practice specification. The linked sandbox is supporting solution material and may implement a simpler subset of these requirements.

Supporting material