diff --git a/src/components/blog/Codemirror.jsx b/src/components/blog/Codemirror.jsx index d12d80e..767fe4b 100644 --- a/src/components/blog/Codemirror.jsx +++ b/src/components/blog/Codemirror.jsx @@ -9,7 +9,16 @@ const Codemirror = ({ lang, code }) => { fontSize: 14, }); - return
; + const [isMounted, setIsMounted] = React.useState(false); + React.useEffect(() => { + setIsMounted(true); + }, []); + + return ( +{code}
}
+