I tried with the following code after importing the image to the src folder. But I can't see the image getting displayed. How to solve this issue?
My React code is this.
import React from 'react'
import burgerLogo from '../../assets/images/burger-logo.png'
import classes from './Logo.module.css'
const logo=(props)=>(
<div className={classes.Logo} style={{height:props.height}}>
<image src={burgerLogo} alt="MyBurger"/>
</div>
);
export default logo;
My CSS code is this.
.Logo{
background-color: white;
padding: 8px;
height: 100%;
box-sizing: border-box;
border-radius: 5px;
}
.Logo img{
height: 100%;
}
