Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

import an image react in the public folder

<img src={process.env.PUBLIC_URL + '/yourPathHere.jpg'} />
<img src={window.location.origin + '/yourPathHere.jpg'} />  
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #import #image #react #public #folder
ADD COMMENT
Topic
Name
1+2 =