JSFiddle - React, Tailwind, and code Playground

HTML

<div style="height: 400px; width: 400px; background: #ccc">
        <div class="flex-centre">
            <img class="img-responsive" src="http://placekitten.com/g/200/200" alt="">
        </div>
</div>

CSS

.flex-centre {
          display: flex;
          justify-content: center;
          flex-direction: column;
          text-align: center;
          height: 100%;
          width: 100%;
}