Check out example codes for "repeat autofill css grid minmax". It will help you in understanding the concepts better.

Code Example 1

grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));

Learn ReactJs, React Native from akashmittal.com