Last active
November 30, 2023 01:11
-
-
Save richleach/19b698800f5a4a98d32af739f4dfd98e to your computer and use it in GitHub Desktop.
JSM layout.tsx with children and TAILWIND CSS TO FULLY CENTER CONTENT IN MIDDLE OF PAGE
This file contains hidden or 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
import React from "react"; | |
const Layout = ({ children }: { children: React.ReactNode }) => { | |
return ( | |
<main className="flex min-h-screen w-full items-center justify-center"> | |
{children} | |
</main> | |
); | |
}; | |
export default Layout; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment