title: Style parent component on input focus of child component in styled-components
body: <p>I've seen some burdensome solutions to this problem, using refs or event handlers in React. I'm wondering if there's a solution at all in styled-components.</p>
  
  <p>The code below is clearly incorrect. I'm trying to figure out the easiest way to style my parent component, when my input child component has focus. Is this possible using styled-components?</p>
  
  <p>What's the best way to go about this, specifically with styled-components in mind, even if it means relying on one of the React methods mentioned above?</p>
  
  <pre><code>const Parent = () =&gt; (
    &lt;ParentDiv&gt;
      &lt;Input/&gt;
    &lt;/ParentDiv&gt;
  );
  
  
  const ParentDiv = styled.div`
    background: '#FFFFFF';
  
    ${Input}:focus &amp; {
      background: '#444444';
    }
  `;
  
  const Input = styled.input`
    color: #2760BC;
  
    &amp;:focus{
      color: '#000000';
    }
  `;
  </code></pre>