Check out example codes for "justify content vs align items gridd". It will help you in understanding the concepts better.

Code Example 1

The justify-content and align-content properties align the grid.

The justify-self, justify-items, align-self and align-items properties align the grid items.

Learn ReactJs, React Native from akashmittal.com