Я пытался использовать систему координат материала, но при использовании сетки * получалось неловкое пространство direction='row'
.
const useStyles = makeStyles((theme) => ({
gridHome: {
minHeight: '100vh',
border: '2px solid red'
},
gridContent: {
width: '100%',
border: '2px solid black',
textAlign: 'center'
},
title: {
fontFamily: 'Dancing Script,Sans Serif,cursive',
}
}));
const NewUser = () => {
const classes = useStyles();
return (
<React.Fragment>
<Grid container direction='row' justify='center' alignItems='flex-start' className=
{classes.gridHome}>
<Grid item xs={12} md={12} className={classes.gridContent}>
<Typography className={classes.title}>user</Typography>
</Grid>
<Grid item xs={12} md={12} className={classes.gridContent}>
<Typography className={classes.title}>Welcome User</Typography>
</Grid>
</Grid>
</React.Fragment>
);
}