import background image css dynamic url styled components code example
Example: background image with styled components
const Content = styled.div`
background-image: url(${props => props.img});
`;
<Content img={ImagePath} />
const Content = styled.div`
background-image: url(${props => props.img});
`;
<Content img={ImagePath} />