title: How to get parent props in child component when using styled component in react
body: <p>Let me illustrate with an examble</p>
  <pre><code>//NavLink: react router component
  
  const StyledNavLink = styled(NavLink)`
    color: red;
    background: blue;
  `
  function styledLink(label, to) {
    return &lt;StyledNavLink
      to={to}
      className={(props) =&gt; console.log(props)}
    &gt;
      {label}
    &lt;/StyledNavLink&gt;
  }
  </code></pre>
  <p>Here nothing is printed...
  If I use <code>NavLink</code> instead of <code>StyledNavLink</code>, I get all the prop values in console.
  Then how to get <code>NavLink</code> properties in <code>StyledNavLink</code> component?</p>