Skip to content

Commit

Permalink
Add components/Image
Browse files Browse the repository at this point in the history
  • Loading branch information
heimdallrj authored and thinkholic committed Aug 11, 2020
1 parent 0de1a07 commit 03899d5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/Image/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from 'react';
import PropTypes from 'prop-types';

export default function Image({ src, alt, ...restProps }) {
return <img {...restProps} src={src} alt={alt} />;
}

Image.propTypes = {
src: PropTypes.string.isRequired,
alt: PropTypes.string,
};

0 comments on commit 03899d5

Please sign in to comment.