Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

set bg image in react

<div style={{ backgroundImage: "url(/assests/img/image.png)" }}>
  Hello World
</div>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #bg #image #react
ADD COMMENT
Topic
Name
2+9 =