Check out example codes for "css remove white space below footer". It will help you in understanding the concepts better.

Code Example 1

<body>
    <section>
        This is content of the page
    </section>
    <footer>
        Text of footer
    </footer>
</body>

section {
    min-height: 100vh; /* minus the height of the footer */
}

Learn ReactJs, React Native from akashmittal.com