Skip to content

Commit e07c5e3

Browse files
thetarnavgithub-actions[bot]
authored andcommitted
Format
1 parent 1db7b5f commit e07c5e3

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

packages/keyed/README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,7 @@ import { SetValues } from "@solid-primitives/keyed";
202202
const [set, setSet] = createSignal(new Set());
203203

204204
<SetValues of={set()} fallback={<div>No items</div>}>
205-
{(value) => (
206-
<div>
207-
{value}
208-
</div>
209-
)}
205+
{value => <div>{value}</div>}
210206
</SetValues>;
211207
```
212208

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

219215
```tsx
220216
<SetValues of={set()} fallback={<div>No items</div>}>
221-
{(value, index) => (
222-
<div data-index={index()}>
223-
{value}
224-
</div>
225-
)}
217+
{(value, index) => <div data-index={index()}>{value}</div>}
226218
</SetValues>
227219
```
228220

0 commit comments

Comments
 (0)