An open API service indexing awesome lists of open source software.

https://github.com/postor/react-folder-tree

yet another folder tree component for react | 又一个文件夹结构组件
https://github.com/postor/react-folder-tree

Last synced: 10 months ago
JSON representation

yet another folder tree component for react | 又一个文件夹结构组件

Awesome Lists containing this project

README

          

# react-folder-tree

yet another folder tree component for react | 又一个文件夹结构组件

- 0 dependency | 无依赖
- lazy loaded | 懒加载
- simple api | 接口简单
- fully customizable UI | 可定制 UI

![screenshot](./screenshot.gif)

https://codesandbox.io/s/postor-react-folder-tree-by5stv?file=/src/App.tsx

## useage

```
import {FolderTree,DefaultTemplate} from "@postor/react-folder-tree"

await fetch(base) /* your function to fetch */}
rootName="root"
/>
```

## customize UI

create your template based on [`DefaultTemplate`](./src/DefaultTemplate.tsx) and then

基于 [`DefaultTemplate`](./src/DefaultTemplate.tsx) 创建你自己的 UI 模板,然后

```