Last active
March 17, 2022 09:14
-
-
Save SahanAmarsha/a70abf48c01f3ade3dd90c7255e54157 to your computer and use it in GitHub Desktop.
App.tsx renders MUI components
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"; | |
import { Box, CssBaseline, Paper, Typography } from "@mui/material"; | |
function App() { | |
return ( | |
<div> | |
<CssBaseline /> | |
<Box | |
height="100vh" | |
display="flex" | |
justifyContent="center" | |
alignItems="center" | |
flexDirection="column" | |
> | |
<Paper | |
elevation={3} | |
sx={{ padding: "1rem", backgroundColor: "secondary.light" }} | |
> | |
<Typography color="primary.dark" variant="h1"> | |
Starter App | |
</Typography> | |
</Paper> | |
</Box> | |
</div> | |
); | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment