JSFiddle - React, Tailwind, and code Playground

by Kevin Faulhaber

HTML

<div id="card_brand">
    
</div>

CSS

div {
    background-color: yellow;
    width: 200px;
    height: 200px;
    max-width: 200px;
}

JavaScript

var response = {'path' : 'http://pngimg.com/upload/tree_PNG2517.png'}; 

$('#card_brand').css({background: 'url('+response['path']+') 0 no-repeat', 'background-position': 'right'});