JSFiddle - React, Tailwind, and code Playground

HTML

<div class="bg"></div>

CSS

html, body { height: 100%; width: 100%; }

.bg {
    background: url('http://lorempixel.com/output/nature-q-c-1920-1103-10.jpg') no-repeat;
    width: 100%;
    height: 100%;
    background-size: contain; 
}