{"id":20763266,"url":"https://github.com/tinspham209/play-around-react-dnd","last_synced_at":"2026-04-20T18:01:50.745Z","repository":{"id":42662473,"uuid":"294800991","full_name":"tinspham209/play-around-react-dnd","owner":"tinspham209","description":"Practice Drag \u0026 Drop with react-dnd \u0026 diagrams","archived":false,"fork":false,"pushed_at":"2023-12-15T20:12:16.000Z","size":365,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T17:54:57.300Z","etag":null,"topics":["beautiful-react-diagrams","immutability-helper","react-dnd","redux-toolkit"],"latest_commit_sha":null,"homepage":"","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/tinspham209.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":"2020-09-11T19:59:03.000Z","updated_at":"2020-11-14T06:52:51.000Z","dependencies_parsed_at":"2024-11-17T10:43:42.926Z","dependency_job_id":"1a946bd9-ebe9-4db1-bf33-baa715a0f745","html_url":"https://github.com/tinspham209/play-around-react-dnd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tinspham209/play-around-react-dnd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinspham209%2Fplay-around-react-dnd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinspham209%2Fplay-around-react-dnd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinspham209%2Fplay-around-react-dnd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinspham209%2Fplay-around-react-dnd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinspham209","download_url":"https://codeload.github.com/tinspham209/play-around-react-dnd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinspham209%2Fplay-around-react-dnd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32059139,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["beautiful-react-diagrams","immutability-helper","react-dnd","redux-toolkit"],"created_at":"2024-11-17T10:43:35.499Z","updated_at":"2026-04-20T18:01:50.726Z","avatar_url":"https://github.com/tinspham209.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mini Project: Practice Drag \u0026 Drop with react-dnd\n\n## Date: 10 ~~\u003e\u003e 12 - Sep - 2020\n\n### Functions\n\n- Drag item from List and Drop to Container\n- Drag Item Around in Container\n- Study react-dnd\n- study useContext for state management\n- study redux toolkit for state management\n\n### Screenshot\n\n\u003cimg src=\"https://i.imgur.com/8HvH10W.png\" alt=\"practice-react-dnd\"/\u003e\n\n### Tech-Stack\n\n- React Hooks\n- immutability-helper : Mutate a copy of data without changing the original source\n- react-dnd\n- react-redux\n- @reduxjs/toolkit\n\n### Plan Of Action\n\n- Read document of react-dnd\n- Initial Box component\n- useMemo for BoxStyle\n- Initial Container\n- Display box in Container\n- Drag box around in Container\n- Initial List component\n- useMemo for ListStyle\n- Drag item from List and Drop to Container\n- Display item currently dnd to Container\n- Read Document of immutability-helper\n- use immutability-helper to add newItem to boxes\n- check isDragBox and isDragList\n- useContext for state management : isDragBox, isDragList\n- Read Document of react-redux\n- Read Document of redux toolkit\n- update state management with Redux-toolkit\n- setBoxDragging\n- setListDragging\n- addItemBox\n- use immutability-helper to add newItem to boxItems\n- setNewLocationItem\n- use immutability-helper to update location of item in boxItems\n\n### Directory Structure\n\n```\n.\n├── .gitignore\n├── package.json\n├── README.md\n├── public\n└── src\n    ├── app\n        └── store.js\n    ├── components\n        ├── Box.jsx\n        ├── BoxSlice.js\n        ├── Container.jsx\n        ├── List.jsx\n        └── index.jsx\n    ├── App.js\n    ├── ItemTypes.js\n    └── index.js\n```\n\n### Set up\n\nUse the cmd line to clone repo to your computer\n\n```\ngit clone [github_repo_url]\n```\n\nUse the cmd line to install dependencies.\n\n```\nnpm install\n```\n\nRun in cmd for start the dependencies server\n\n```\nnpm start\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinspham209%2Fplay-around-react-dnd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinspham209%2Fplay-around-react-dnd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinspham209%2Fplay-around-react-dnd/lists"}