Check out example codes for "how to make body width be device width html". It will help you in understanding the concepts better.

Code Example 1

<meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

Learn ReactJs, React Native from akashmittal.com