diff --git a/react/src/lib/Giscus.tsx b/react/src/lib/Giscus.tsx index 6ae64fe9..6a95d762 100644 --- a/react/src/lib/Giscus.tsx +++ b/react/src/lib/Giscus.tsx @@ -25,27 +25,25 @@ export default function Giscus({ import('giscus').then(() => setMounted(true)); }, []); + if (!mounted) return null; + return ( - <> - {mounted && ( - - )} - + ); }