Check out example codes for "place item center in css using grid". It will help you in understanding the concepts better.

Code Example 1

.parent-element {
   display: grid;
   place-items: center;
}

Learn ReactJs, React Native from akashmittal.com