Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react doesnt load local images but external does

instead of <img src={"/images/resto.png"} /> you need to use <img src={require('/images/image-name.png')} />
 
PREVIOUS NEXT
Tagged: #react #doesnt #load #local #images #external
ADD COMMENT
Topic
Name
4+3 =