title: Can anyone tell me why before not working on styled components?
body: <p>I'm try to use <code>before</code> on style components on React but it's not working. Without <code>before</code> background image shown but after adding this <code>before</code> background image not showing;</p>
  <pre><code>import styled from  'styled-components'
  export const Container=styled.div `
  &amp;:before {
  content:'';
  top:0px;
  left:0px;
  right:0px;
  position:absolute;
  background-image:url(${({bg})=&gt;bg});
  background-size:cover;
  }
  `;
  </code></pre>