Skip to content

Instantly share code, notes, and snippets.

@SahanAmarsha
Last active March 17, 2022 09:14
Show Gist options
  • Save SahanAmarsha/a70abf48c01f3ade3dd90c7255e54157 to your computer and use it in GitHub Desktop.
Save SahanAmarsha/a70abf48c01f3ade3dd90c7255e54157 to your computer and use it in GitHub Desktop.
App.tsx renders MUI components
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