background image variable react code example
Example: background image in react from variable
var divStyle = {
backgroundImage: 'url(' + imgUrl + ')',
width: '300px'
};
var divStyle = {
backgroundImage: 'url(' + imgUrl + ')',
width: '300px'
};