Skip to content

Commit 1293adf

Browse files
authored
fix typo (#6106)
1 parent 8423819 commit 1293adf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@react-stately/data/docs/useListData.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ list.insert(1, {name: 'Horse'}, {name: 'Giraffe'});
9494

9595
```tsx
9696
// Insert an item before another item
97-
list.insertAfter('Kangaroo', {name: 'Horse'});
97+
list.insertBefore('Kangaroo', {name: 'Horse'});
9898

9999
// Insert multiple items before another item
100-
list.insertAfter('Kangaroo', {name: 'Horse'}, {name: 'Giraffe'});
100+
list.insertBefore('Kangaroo', {name: 'Horse'}, {name: 'Giraffe'});
101101
```
102102

103103
```tsx

0 commit comments

Comments
 (0)