Check out example codes for "css vw scrollbar". It will help you in understanding the concepts better.

Code Example 1

body {
  width: calc(100vw - (100vw - 100%));
}

Learn ReactJs, React Native from akashmittal.com