File tree 1 file changed +3
-3
lines changed
src/routes/solid-start/building-your-application 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export default function Page() {
23
23
return (await response .json ()) as User [];
24
24
});
25
25
26
- return <ul > { users () && users () ! . map (( user ) => <li >{ user .name } </li >) } </ul >;
26
+ return <For each = { users ()} > { ( user ) => <li >{ user .name } </li >} </For >;
27
27
}
28
28
```
29
29
@@ -54,7 +54,7 @@ export const route = {
54
54
export default function Page() {
55
55
const users = createAsync (() => getUsers ());
56
56
57
- return <ul > { users () && users () ! . map (( user ) => <li >{ user .name } </li >) } </ul >;
57
+ return <For each = { users ()} > { ( user ) => <li >{ user .name } </li >} </For >;
58
58
}
59
59
```
60
60
@@ -96,6 +96,6 @@ export const route = {
96
96
export default function Page() {
97
97
const users = createAsync (() => getUsers ());
98
98
99
- return <ul > { users () && users () ! . map (( user ) => <li >{ user .name } </li >) } </ul >;
99
+ return <For each = { users ()} > { ( user ) => <li >{ user .name } </li >} </For >;
100
100
}
101
101
```
You can’t perform that action at this time.
0 commit comments