Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

image react

First method 
import logo from './logo.jpeg';    <img src={logo} />
Second Method
const logo = require('./logo.jpeg); <img src={logo.default} />
Third Method
<img src={require('./logo.jpeg').default} />
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #image #react
ADD COMMENT
Topic
Name
8+5 =