Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
react-dragon
Advanced tools
A very simple drag and drop component. Did I mention it was simple?
Properties | Description |
---|---|
onDrop | Required. This is the callback that executes when an item is dropped onto a <Dragon /> |
allow | Directly translates to event.dataTransfer.effectAllowed. Defaults to "all" |
className | Additional css class names. This can be a string or an object. The value will be injected into the classSet React addon |
effect | Directly translates to event.dataTransfer.dropEffect. Defaults to "copy" |
element | What element to use as the wrapper for the dragon. Defaults to "div" |
message | This is the token that will be passed when a <Dragon /> is dropped onto another <Dragon /> it must be JSON serialization compatible. |
React.createClass({
render() {
return (
<Dragon message={ 'something' } onDrop={ this._onDrop } element="p">
{ this.props.children }
</Dragon>
)
},
_onDrop(transmission, receiver) {
// the transmission is the message from the dragged element
// the receiver is the message from the dropped element
}
})
FAQs
A dead simple react drag and drop component
The npm package react-dragon receives a total of 0 weekly downloads. As such, react-dragon popularity was classified as not popular.
We found that react-dragon 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
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.