
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
@salesframe/react-folder-tree
Advanced tools
This is a forked repository, and modified it to our needs.
| prop | type | isRequired | description |
|---|---|---|---|
rootClassName | :string | false | adds an extra class to the top level div container |
folderTextClassName | :string | false | adds an extra class to the names of the folders |
folderTextSelectedClassName | :string | false | adds an extra class to the selected names of the folders |
listClassName | :string | false | adds an extra class to the ul dom element |
isEditable | :bool | false | allow to disable the editable mode |
This is a folder tree written in ReactJS.
We can do:

npm install --save react-folder-tree
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
Remember to include the above link in your html page. Otherwise the icons won't show up.
import React from 'react';
import ReactDOM from 'react-dom';
import FolderTree from 'react-folder-tree';
const testData = YOUR DATA;
ReactDOM.render(
<FolderTree
data={testData}
/>,
document.getElementById('root')
)
{
id: number,
filename: string,
children: array of *this* [optional]
}
const testData = {
"id": 1,
"filename": "All Categories",
"children": [
{
"id": 2,
"filename": "For Sale",
"children": [
{
"id": 3,
"filename": "Audio & Stereo",
"children": [
{
"id": 4,
"filename": "For Sale",
"children": [
{
"id": 5,
"filename": "Audio & Stereo",
},
{
"id": 6,
"filename": "Baby & Kids Stuff",
},
{
"id": 7,
"filename": "Music, Films, Books & Games",
}
]
},
{
"id": 8,
"filename": "Motors",
"children": [
{
"id": 9,
"filename": "Car Parts & Accessories",
},
{
"id": 10,
"filename": "Cars",
},
{
"id": 11,
"filename": "Motorbike Parts & Accessories",
}
]
},
{
"id": 12,
"filename": "Jobs",
"children": [
{
"id": 13,
"filename": "Accountancy",
},
{
"id": 14,
"filename": "Financial Services & Insurance",
},
{
"id": 15,
"filename": "Bar Staff & Management",
}
]
}
]
},
{
"id": 16,
"filename": "Baby & Kids Stuff",
},
{
"id": 17,
"filename": "Music, Films, Books & Games",
}
]
},
{
"id": 18,
"filename": "Motors",
"children": [
{
"id": 19,
"filename": "Car Parts & Accessories",
},
{
"id": 20,
"filename": "Cars",
},
{
"id": 21,
"filename": "Motorbike Parts & Accessories",
}
]
},
{
"id": 22,
"filename": "Jobs",
"children": [
{
"id": 23,
"filename": "Accountancy",
},
{
"id": 24,
"filename": "Financial Services & Insurance",
},
{
"id": 25,
"filename": "Bar Staff & Management",
}
]
}
]
}
Testing data is from here
Icons are from here
Any contributions are welcomed! Please upload issues or pull requests on the github page, thank you!
FAQs
React Folder Tree
The npm package @salesframe/react-folder-tree receives a total of 3 weekly downloads. As such, @salesframe/react-folder-tree popularity was classified as not popular.
We found that @salesframe/react-folder-tree 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.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.