Frontendx
README.md
SOLUTION.md
main.tsxentry
App.tsx
App.css
index.html
vite.config.ts
Installed
react@^19.2.0
react-dom@^19.2.0

Create a Sortable Todo List with Drag and Drop Option — JIRA/Trello Clone with Multi-List Card Dragging and State Persistence

Prompt

Build a JIRA/Trello-style Kanban board in React where cards can be created, deleted, and dragged and dropped between different lists (columns). Each list has a title and contains cards. Drag-and-drop between lists reorders both the source and destination arrays. State should be persisted to localStorage so it survives page reload (nice-to-have). The core drag-and-drop logic can be implemented using the HTML5 Drag and Drop API (dragstart, dragover, drop events) or a library like react-beautiful-dnd. Track the dragged card's origin list and index to correctly splice it out and insert it into the target list. This was asked in Navi's SDE2 frontend interview and Uber's L5a (SDE3) frontend interview.

Define state as an object with list IDs as keys and arrays of card objects as values.
Test Results

Create a Sortable Todo List with Drag and Drop Option — JIRA/Trello Clone with Multi-List Card Dragging and State Persistence

Build a JIRA/Trello-style Kanban board in React where cards can be created, deleted, and dragged and dropped between different lists (columns). Each list has a title and contains cards. Drag-and-drop between lists reorders both the source and destination arrays. State should be persisted to localStorage so it survives page reload (nice-to-have). The core drag-and-drop logic can be implemented using the HTML5 Drag and Drop API (dragstart, dragover, drop events) or a library like react-beautiful-dnd. Track the dragged card's origin list and index to correctly splice it out and insert it into the target list. This was asked in Navi's SDE2 frontend interview and Uber's L5a (SDE3) frontend interview.