import { For, lazy } from "solid-js";
const LazyCounter = lazy(async() => import('~/components/Counter'))
export default function Home() {
return (
<main>
<For each={[1,2,3]}>
{() => {
return <LazyCounter />
}}
</For>
</main>
);
}
import { For, lazy } from "solid-js";
const LazyCounter = lazy(async() => import('~/components/Counter'))
export default function Home() {
return (
<main>
<For each={[1,2,3]}>
{() => {
return <LazyCounter />
}}
</For>
</main>
);
}