mirror of
https://github.com/tuono-labs/tuono
synced 2026-07-29 22:02:46 -07:00
14 lines
356 B
TypeScript
14 lines
356 B
TypeScript
import React, { Suspense, type JSX } from "react";
|
|
import { dynamic } from "tuono";
|
|
|
|
const DynamicComponent = dynamic(() => import("../components/DynamicComponent"))
|
|
|
|
const Loading = (): JSX.Element => <>Loading</>
|
|
|
|
export default function IndexPage(): JSX.Element {
|
|
return (
|
|
<Suspense fallback={<Loading />}>
|
|
<DynamicComponent />
|
|
</Suspense>
|
|
);
|
|
} |