Created
May 30, 2021 05:21
-
-
Save kjmczk/fcf804bc2a8131054598af81fd6843f6 to your computer and use it in GitHub Desktop.
pages/_app.tsx - MDX Blog with Dark Mode - Medium
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// pages/_app.tsx | |
import type { AppProps } from 'next/app'; | |
import { ThemeProvider } from 'next-themes'; | |
import 'tailwindcss/tailwind.css'; | |
const MyApp: React.FC<AppProps> = ({ Component, pageProps }: AppProps) => { | |
return ( | |
<ThemeProvider attribute="class"> | |
<Component {...pageProps} /> | |
</ThemeProvider> | |
); | |
}; | |
export default MyApp; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment