Guest User

Untitled

a guest
Dec 11th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. const Avatar = ({ imageUrl, className }) => (
  2. <div className={`avatar ${className}`} onHover={blur}>
  3. <img src={imageUrl || "placeholder.io"} alt="card image" />
  4. </div>
  5. )
  6.  
  7. Avatar.propTypes = {
  8. imageUrl: PropTypes.string.isRequired,
  9. className: PropTypes.string,
  10. }
Add Comment
Please, Sign In to add comment