Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

loading image in react js

// Assuming logo.png is in the same folder as JS file
import logo from './logo.png';

// ...later
<img src={logo} alt="logo" />
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #loading #image #react #js
ADD COMMENT
Topic
Name
7+6 =