styled property react background image 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} />