I am following React Material UI design for horizontal single line image grid list with horizontal scroll. How can I change "Cols" value dynamically based on screen size (xm, sm, md, ls)? For example md screen will be "12 cols", sm screen will be "4 cols" etc.
Single line Grid list
https://material-ui.com/demos/grid-list/#single-line-grid-list
<GridList className={classes.gridList} cols={3}>......</GridList>
class.gridListchange dynamically on different resolutions? - Marko Savic