Skip to content

Instantly share code, notes, and snippets.

@SahanAmarsha
Last active March 13, 2022 09:17
Show Gist options
  • Save SahanAmarsha/baa2d6dd1ac2fc8e21ff3974df1e7515 to your computer and use it in GitHub Desktop.
Save SahanAmarsha/baa2d6dd1ac2fc8e21ff3974df1e7515 to your computer and use it in GitHub Desktop.
Home Page Component
// src/pages/Home.tsx
import React, {ReactElement, FC} from "react";
import {Box, Typography} from "@mui/material";
const Home: FC<any> = (): ReactElement => {
return (
<Box sx={{
flexGrow: 1,
backgroundColor: 'whitesmoke',
display: 'flex',
justifyContent: 'center',
alignItems: 'center'
}}>
<Typography variant="h3">Home</Typography>
</Box>
);
};
export default Home;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment