diff --git a/src/pages/_app.js b/src/pages/_app.js index 1ee27d6..2eb84a8 100644 --- a/src/pages/_app.js +++ b/src/pages/_app.js @@ -1,15 +1,15 @@ import '@/styles/globals.css' -import "highlight.js/styles/atom-one-dark.css"; +import 'highlight.js/styles/atom-one-dark.css' -import hljs from "highlight.js"; +import hljs from 'highlight.js' import { DefaultSeo } from 'next-seo' -import { useEffect } from 'react'; +import { useEffect } from 'react' export default function App ({ Component, pageProps }) { useEffect(() => { - hljs.highlightAll(); - }, [ Component ]); - + hljs.highlightAll() + }, [Component]) + return ( <>