styled-components/macro allows the developer to enjoy the benefits of the displayName property without needing to tinker with a babel config / eject a create-react-app application.
Expected behavior: The <Thing> component should render as a div with class="App__Thing-sc-123abc"Actual behavior: The <Thing> component is rendering as a div with class="sc-abc123".
I checked, and this appears to have broken with the 2.0.0 release; it worked immediately previous, in 1.13.3.
Hi there!
styled-components/macro
allows the developer to enjoy the benefits of thedisplayName
property without needing to tinker with a babel config / eject a create-react-app application.Here's a CodeSandbox showing the issue: https://codesandbox.io/s/cold-flower-5orvj
Expected behavior: The
<Thing>
component should render as a div withclass="App__Thing-sc-123abc"
Actual behavior: The<Thing>
component is rendering as a div withclass="sc-abc123"
.I checked, and this appears to have broken with the 2.0.0 release; it worked immediately previous, in 1.13.3.
Let me know if I can do anything else to help!