Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Avatar = ({imageUrl, style }) => (
- <div className="avatar" style={style}>
- <img src={imageUrl} alt="card image" />
- </div>
- )
- Avatar.propTypes = {
- imageUrl: PropTypes.string.isRequired,
- style: PropTypes.object,
- }
Add Comment
Please, Sign In to add comment