react-component / react-component/tree

`children` of Tree is deprecated. Please use `treeData` instead.

Open
#371 8 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.3k
Forks
490
Avg merge
3d 17h
Merged PRs (30d)
5

Description

<Tree className="file-tree" expandedKeys={expandedKeys} selectedKeys={selectedKeys} onSelect={this.handleClick} onExpand={this.handleExpand} > {files.map(createNode)} </Tree>
我需要自定义TreeNode的title,使用这种模式会出现上面的警告信息
rc-tree@3.9.5

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the shown Tree JSX with rc-tree@3.9.5, focusing on the children and treeData APIs and the custom TreeNode title requirement. Confirm what change is needed so the warning disappears while the custom title, selection, expansion, and file rendering continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.