Skip to content
Snippets Groups Projects

Feature/manjusha/sidebar1

3 files
+ 36
23
Compare changes
  • Side-by-side
  • Inline

Files

+ 29
0
import React from "react";
function Image(props) {
const { imageClass, src, alt, width,height} = props;
return (
<img
className={imageClass }
src={src}
alt={alt}
height={height}
width={width}
/>
);
}
Image.defaultProps = {
src: require("../../images/noimage.jpg"),
alt: "Image",
height: "100px",
width: "100px",
}
export default Image;
\ No newline at end of file
Loading