SHARE
TWEET

Untitled

a guest Jan 24th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const Image = styled.div<{ backgroundImage: string }>`
  2.     background-position: center;
  3.     background-size: cover;
  4.     background-image: ${props => `url(${props.backgroundImage}`};
  5. `;
  6.    
  7. <Image backgroundImage={result.imageUrl}/>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top