JSFiddle - React, Tailwind, and code Playground

HTML

<div class="cover"></div>

CSS

.cover {
background: url(http://placehold.it/1920x1080) no-repeat;
  background-size: cover;
  width: 100%;
  height: 1080px;
}