I want to make my grid items to be square, e.g. the height of the item equals to is width:
const App = ({ width, items }) => (
<Grid container>
{items.map((v) => (
<Grid item md={width}> // I want to make this Grid to be square
v
</Grid>
))}
</Grid>
);
How to do that?
note: width is not fixed.