Challenge
I'm struggling to figure out how to make a Grid
container element expand to the height and width of its parent element without directly setting the dimensions using inline styles or utilizing the makeStyles/useStyles
hook for styling.
I'm confident that there must be a simpler solution. I've set up a sandbox with an example of what I'd like to achieve (using vanilla React) and my current progress (utilizing Material UI components).
The reason I'm opting for Grid
over standard Box
components is because it offers greater responsiveness controls compared to Box
.
Illustration