Skip to content

Commit

Permalink
add suspense block
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Granello committed Dec 13, 2024
1 parent f20ed60 commit 2258e54
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import CalculatorInput from "./components/ui/CalculatorInput";
import { ClipLoader } from "react-spinners";
import { Suspense } from "react";
export default function Home() {
return (
<main>
<CalculatorInput />
<Suspense fallback={<ClipLoader />}>
<CalculatorInput />
</Suspense>
</main>
);
}

0 comments on commit 2258e54

Please sign in to comment.