Answers for "loading image in react js"

3

react js image path src from local folder

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

// ...later
<img src={logo} alt="logo" />
Posted by: Guest on September-11-2020
1

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" />
Posted by: Guest on August-03-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language