background image with styled components

JavaScript
const Content = styled.div`
    background-image: url(${props => props.img});
`;
<Content img={ImagePath} />

Source

Also in JavaScript: