
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
draggable-tree-view
Advanced tools
A simple and customizable tree view for React with drag-n-drop for repositioning.
A simple and customizable Tree View React component. It supports items reordering and moving between tree branches with drag-n-drop.
# Using Yarn
npm i draggable-tree-view --save
or
# Using Npm
yarn add draggable-tree-view
import { TreeView, TreeNode } from "draggable-tree-view"
import 'draggable-tree-view/dist/style.css';
const treeDataSample: TreeNode[] = [
new TreeNode({ id: 1, title: 'Root Item 1', position: 1, canHaveParent: false }),
new TreeNode({ id: 2, title: 'Root Item 2', position: 2, canHaveParent: false }),
new TreeNode({ id: 3, title: 'Child Item 1 of Root 1 id 3', position: 1, parentId: 1, canHaveChildren: false }),
new TreeNode({ id: 4, title: 'Child Item 2 of Root 1 id 4', position: 2, parentId: 1, canHaveChildren: false }),
new TreeNode({ id: 5, title: 'Child Item 1 of Root 2 id 5', position: 1, parentId: 2, canHaveChildren: false }),
new TreeNode({ id: 6, title: 'Branch Item 3 id 6', position: 2, parentId: 1 }),
new TreeNode({ id: 7, title: 'Child Item 1 of Branch 3 id 7', position: 1, parentId: 6, canHaveChildren: false }),
];
function App() {
return (
<>
<h1>Draggable tree</h1>
<TreeView items={treeDataSample} onRenderItem={(node) => <div>{node.title}</div>}/>
</>
)
}
This project is licensed under the MIT License. For more information, see the LICENSE file.
For support and bug reports, please open an issue on GitHub.
FAQs
A simple and customizable tree view for React with drag-n-drop for repositioning.
The npm package draggable-tree-view receives a total of 0 weekly downloads. As such, draggable-tree-view popularity was classified as not popular.
We found that draggable-tree-view demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.