Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react image

<img src={require('./logo.jpeg')} />

import logo from './logo.jpeg'; // with import    
const logo = require('./logo.jpeg); // with require
<img src={logo} />
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #image
ADD COMMENT
Topic
Name
1+2 =