
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
react-drag-drop-container-typescript
Advanced tools
A ReactJS library with Drag and Drop functionality for mouse and touch devices.
The following library allows us to create Drag & Drop interactions more effectively and natively without using HTML5. This library was not made by me, but by Peter Hollingsworth, this is just maintenance and improvements of the old library.
# NPM
npm install react-drag-drop-container-typescript
# Yarn
yarn add react-drag-drop-container-typescript
Only single target key:
import { DragDropContainer, DropTarget } from 'react-drag-drop-container-typescript';
<DragDropContainer targetKey="foo" >
<div>Drag Me!</div>
</DragDropContainer>
<DropTarget targetKey="foo" >
<p>I'm a valid drop target for the object above since we both have the same targetKey!</p>
</DropTarget>
With multiple target keys:
import { DragDropContainer, DropTarget } from 'react-drag-drop-container-typescript';
<DragDropContainer targetKey={[ "foo", "bar" ]} >
<div>Drag Me!</div>
</DragDropContainer>
<DropTarget targetKey={[ "foo", "bar" ]} >
<p>I'm a valid drop target for the object above since we both have the same targetKey!</p>
</DropTarget>
This project will always remain open source and any kind of contribution is welcome. By participating in this project, you agree to keep common sense and contribute in a positive way.
A special thanks to Peter Hollingsworth who had the idea to start this project and to their contributors who also invested the time in making the improvements and bugfixes and another special thanks to Victoria Likhuta who made an amazing clean code and performance improvements, just took her code from PRs (#40 / #43)
Copyright © 2022 João Fernandes.
This project is MIT licensed.
FAQs
Drag & Drop Container in TypeScript
We found that react-drag-drop-container-typescript demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.