There are answer to this question on Stackoverflow as well as on Github but nothing helped me.
I am using <Grid container className={classes.listProjects} spacing={4}> which makes issue of horizontal scroll in mobileview. What I want is this: <Grid container className={classes.listProjects} spacing={isMobile ? 0 : 4}> this will get conditional spacing.
Can someone answer how to achieve it. When can I set isMobile: true , should I use useState hook ? but in that isMobile to true .
If there is another way ?
