While attempting to enclose my element within a <div>
that is nested inside the <Grid>
, I realized that this was causing the <Grid>
layout to break! Surprisingly, when I tried the same approach with Bootstrap grid system, this issue did not arise.
Check out this Codesandbox link for reference
The challenge I'm facing is that I need to apply some styling to elements within the Grid
using a <div>
. However, as shown in the example provided in the Codesandbox, adding a <div>
breaks the Grid
. How can I address this issue? Should I look for an alternative to <div>
, or are there specific props for Grid
that can resolve this problem?