JSFiddle - React, Tailwind, and code Playground

by Timmy Willison

JavaScript

var x = $('<div>');
x.css('background-image', 'url("/img/logo.png")');

var y = x.clone(); y.css('background-image', ''); //bug: this clears x's background image

console.log('x: ', x.css('background-image'));
console.log('y: ', y.css('background-image'));