showing an image in react js
import image from './path-to-image';
<img src={image} height={100} width={100} />
showing an image in react js
import image from './path-to-image';
<img src={image} height={100} width={100} />
insert image in react
import React from 'react';
import logo from './logo.png'; // Tell webpack this JS file uses this image
console.log(logo); // /logo.84287d09.png
function Header() {
// Import result is the URL of your image
return <img src={logo} alt="Logo" />;
}
export default Header;
img src in react js
import Logo from “./logo.png”;
<img src={Logo}/>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us