Skip to content

Commit e50f457

Browse files
committed
docs: refine README usage and ecosystem note
1 parent 419097c commit e50f457

1 file changed

Lines changed: 2 additions & 13 deletions

File tree

README.md

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<div align="center">
22
<h1>@rc-component/tree-select</h1>
3+
<p><sub>Part of the Ant Design ecosystem.</sub></p>
34
<img alt="Ant Design" height="32" src="https://gw.alipayobjects.com/zos/bmw-prod/ae669a89-0c24-40ff-a91d-2b83497170f6.svg" />
45
<p>🌳 React TreeSelect component for choosing values from tree data, with search, checkable nodes, async loading, and virtual scrolling.</p>
56

@@ -13,14 +14,6 @@
1314
</p>
1415
</div>
1516

16-
<p align="center">
17-
<sub>
18-
<a href="https://ant.design">
19-
<img alt="Ant Design" src="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg" height="16">
20-
</a>
21-
Part of the Ant Design ecosystem.
22-
</sub>
23-
</p>
2417

2518
## Highlights
2619

@@ -42,8 +35,6 @@ npm install @rc-component/tree-select
4235

4336
```tsx | pure
4437
import TreeSelect from '@rc-component/tree-select';
45-
import React from 'react';
46-
import { createRoot } from 'react-dom/client';
4738

4839
const treeData = [
4940
{
@@ -58,9 +49,7 @@ const treeData = [
5849
},
5950
];
6051

61-
createRoot(document.getElementById('root')!).render(
62-
<TreeSelect treeData={treeData} placeholder="Select a node" />,
63-
);
52+
export default () => <TreeSelect treeData={treeData} placeholder="Select a node" />;
6453
```
6554

6655
## Examples

0 commit comments

Comments
 (0)