Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
thetarnav authored and github-actions[bot] committed Jan 10, 2025
1 parent 1db7b5f commit e07c5e3
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions packages/keyed/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,7 @@ import { SetValues } from "@solid-primitives/keyed";
const [set, setSet] = createSignal(new Set());

<SetValues of={set()} fallback={<div>No items</div>}>
{(value) => (
<div>
{value}
</div>
)}
{value => <div>{value}</div>}
</SetValues>;
```

Expand All @@ -218,11 +214,7 @@ Second argument of the map function is an index signal.

```tsx
<SetValues of={set()} fallback={<div>No items</div>}>
{(value, index) => (
<div data-index={index()}>
{value}
</div>
)}
{(value, index) => <div data-index={index()}>{value}</div>}
</SetValues>
```

Expand Down

0 comments on commit e07c5e3

Please sign in to comment.