Check out example codes for "how to center the table horizontally css". It will help you in understanding the concepts better.

Code Example 1

.center {
  
  margin-left: auto;
  margin-right: auto;
}

Code Example 2

<table align="center">
    ...
  </table>

Code Example 3

table
{ 
    margin-left: auto;
    margin-right: auto;
}

Learn ReactJs, React Native from akashmittal.com