JSFiddle - React, Tailwind, and code Playground

HTML

<body>
    <div id="wrapper">
        <div id="header">header</div>
        <div id="body">body</div>
        <div id="footer">footer</div>
    </div>
</body>

CSS

html,
body {
    height:100%;
    margin: 0;
}
#wrapper {
    min-height:100%;
    position:relative;
}
#footer {
    width:100%;
    position:absolute;
    bottom:0;
    left:0;
    
    background: red;
}