Skip to content

Commit

Permalink
[docs] Fix typo (#2386)
Browse files Browse the repository at this point in the history
  • Loading branch information
scarf005 committed Sep 8, 2022
1 parent e267c1d commit c98bbad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/docs/hooks/use-list-state.mdx
Expand Up @@ -64,9 +64,9 @@ const setItem = () => handlers.setItem(0, { a: 8 });
const setItemProp = () => handlers.setItemProp(1, 'a', 'new-prop');
// values -> [{ a: 8 }, { a: 'new-prop' }]

// remove objects that have a = 'new-prop'
// filter objects that have a = 'new-prop'
const filter = () => handlers.filter((item) => item.a === 'new-prop');
// values -> [{ a: 8 }]
// values -> [{ a: 'new-prop' }]
```

## API
Expand Down

0 comments on commit c98bbad

Please sign in to comment.