Skip to content

Commit 7e5865f

Browse files
committed
Update README.md
1 parent 715e883 commit 7e5865f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ import 'react-infinite-tree/dist/react-infinite-tree.css';
3333

3434
const data = {
3535
id: 'fruit',
36-
label: 'Fruit',
36+
name: 'Fruit',
3737
children: [{
3838
id: 'apple',
39-
label: 'Apple'
39+
name: 'Apple'
4040
}, {
4141
id: 'banana',
42-
label: 'Banana',
42+
name: 'Banana',
4343
children: [{
4444
id: 'cherry',
45-
label: 'Cherry',
45+
name: 'Cherry',
4646
loadOnDemand: true
4747
}]
4848
}]
@@ -68,11 +68,11 @@ class App extends React.Component {
6868
const nodes = [
6969
{
7070
id: 'node1' + suffix,
71-
label: 'Node 1'
71+
name: 'Node 1'
7272
},
7373
{
7474
id: 'node2' + suffix,
75-
label: 'Node 2'
75+
name: 'Node 2'
7676
}
7777
];
7878
setTimeout(() => {

0 commit comments

Comments
 (0)