Answers for "how to add backgrounf image to body react"

CSS
0

background image in react from variable

var divStyle = {
  backgroundImage: 'url(' + imgUrl + ')',
  width: '300px'
};
Posted by: Guest on January-12-2021
0

set image as background react

<div  styles={{ backgroundImage:`url(${car})` }}>
Posted by: Guest on October-01-2021

Code answers related to "how to add backgrounf image to body react"

Browse Popular Code Answers by Language