{"id":18537312,"url":"https://github.com/shuddha2021/react-draggable-sortable-list","last_synced_at":"2026-04-30T14:33:06.316Z","repository":{"id":237041068,"uuid":"793698294","full_name":"shuddha2021/React-Draggable-Sortable-List","owner":"shuddha2021","description":"An interactive, user-friendly list management application built with React. Features include drag-and-drop sorting and item selection.","archived":false,"fork":false,"pushed_at":"2024-04-30T18:32:54.000Z","size":67914,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-26T03:42:02.445Z","etag":null,"topics":["drag-and-drop","interactive","javascript","list-management","react","sortable-list","sortable-list-app","state-management","user-interface","web-development"],"latest_commit_sha":null,"homepage":"https://react-sortable-list.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shuddha2021.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-29T17:45:49.000Z","updated_at":"2024-10-16T13:44:30.000Z","dependencies_parsed_at":"2024-11-06T19:41:39.018Z","dependency_job_id":"fca3acef-d3ab-4295-b93b-9f23df4b4789","html_url":"https://github.com/shuddha2021/React-Draggable-Sortable-List","commit_stats":null,"previous_names":["shuddha2021/react-draggable-sortable-list","shuddha2021/react-sortable-list-1"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuddha2021%2FReact-Draggable-Sortable-List","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuddha2021%2FReact-Draggable-Sortable-List/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuddha2021%2FReact-Draggable-Sortable-List/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuddha2021%2FReact-Draggable-Sortable-List/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shuddha2021","download_url":"https://codeload.github.com/shuddha2021/React-Draggable-Sortable-List/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239255294,"owners_count":19608253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["drag-and-drop","interactive","javascript","list-management","react","sortable-list","sortable-list-app","state-management","user-interface","web-development"],"created_at":"2024-11-06T19:37:47.478Z","updated_at":"2025-11-01T03:30:28.278Z","avatar_url":"https://github.com/shuddha2021.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Draggable Sortable List\n\nReact Draggable Sortable List is a dynamic and user-friendly web application that allows users to manage a list of items efficiently. With its intuitive drag-and-drop interface, users can seamlessly organize their list, prioritize items, and track progress in real-time.\n\n## Key Features\n\n- **Drag-and-Drop Interface**: Effortlessly move items within the list with a simple drag-and-drop action.\n- **Item Selection**: Select items using checkboxes for easy identification and management.\n- **Persistent State**: The state of the list is maintained using React’s state management, ensuring continuity even after refreshing or closing the app.\n- **Modular Structure**: The application is built using modular React components, allowing for clear organization and easy customization.\n\n\n## Core Logic\n\nThe core logic of the application is implemented in the `SortableList` component. Here’s a brief overview of how it works:\n\n- **State Initialization**: The initial state of the list is set using the `useState` hook from React. Each item in the list has an `id`, `label`, and `checked` property.\n\n- **Drag and Drop**: The `onDragStart` event is used to store the index of the dragged item and its column. The `onDrop` event is used to swap the dragged item with the dropped item using the `swapArrayElements` function.\n\n- **Checkbox Change**: The `handleCheckboxChange` function is used to update the `checked` property of an item when its checkbox is toggled.\n\n- **Rendering Items**: The `renderItem` function is used to render each item in the list. It sets up the necessary drag-and-drop events and renders the item’s checkbox and label.\n\n- **List Splitting**: The list of items is split into two halves, which are rendered in separate columns. This is done in the return statement of the `SortableList` component.\n\n## Technologies Used\n\n- **React**: A powerful JavaScript library for building user interfaces, ensuring a smooth and responsive user experience.\n- **JavaScript**: The primary programming language used for building the application logic and implementing advanced features.\n- **Material-UI**: A popular React UI framework used for designing a visually appealing user interface.\n\n## Getting Started\n\nTo run the React Draggable Sortable List locally, follow these steps:\n\n1. Clone the repository: `git clone https://github.com/your-username/React-Draggable-Sortable-List.git`\n2. Navigate to the project directory: `cd React-Draggable-Sortable-List`\n3. Install dependencies: `npm install`\n4. Start the development server: `npm start`\n5. Open your browser and visit [http://localhost:3000](http://localhost:3000) to view the app.\n\n\u003cimg width=\"1242\" alt=\"Screenshot 2024-04-29 at 12 14 11 PM\" src=\"https://github.com/shuddha2021/react-sortable-list-1/assets/81951239/7da63b41-7c5e-4150-bef3-1cc3f4e34118\"\u003e\n\n\n## Contributing\n\nContributions to the React Draggable Sortable List are highly welcomed! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request. Together, we can make this app even better and help more users manage their lists efficiently.\n\n## License\n\nThis project is licensed under the MIT License. For more information, see the LICENSE file.\n\n## Acknowledgments\n\n- **React Documentation**: A comprehensive resource for learning React.\n- **Material-UI Documentation**: For guidance on using the Material-UI framework.\n- **Open-Source Community**: For providing resources and platforms that make collaborative projects possible.\n\nStreamline your list management with React Draggable Sortable List! Enjoy using the app to organize your items efficiently.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshuddha2021%2Freact-draggable-sortable-list","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshuddha2021%2Freact-draggable-sortable-list","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshuddha2021%2Freact-draggable-sortable-list/lists"}