background image with styled components
const Content = styled.div`
background-image: url(${props => props.img});
`;
<Content img={ImagePath} />
background image with styled components
const Content = styled.div`
background-image: url(${props => props.img});
`;
<Content img={ImagePath} />
how to add background image in styled components
import styled from 'styled-components';
import img from './img/bg.gif';
const Content = styled.div`
border: 1px solid #000;
background-image: url(${img});
width: 2000px;
height: 2000px;
`;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us