Check out example codes for "min-height not working on body". It will help you in understanding the concepts better.

Code Example 1

html {
    min-height: 100%;
    display: flex;
}

body {
    flex: 1;
}

Learn ReactJs, React Native from akashmittal.com