r/reactjs • u/steven-f • Sep 05 '18
Tutorial Announcing styled-components v4: Better, Faster, Stronger
https://medium.com/styled-components/announcing-styled-components-v4-better-faster-stronger-3fe1aba1a112
203
Upvotes
View all comments
Show parent comment
17
u/coyote_of_the_month Sep 05 '18
Life-changing benefits:
.dive().dive().dive().dive()pattern if you're shallow rendering with Enzyme in your tests, escaping from the.find()antipattern.innerRefinstead ofrefwhen attaching a ref that does anything remotely useful.(I am stuck with someone else's decision to use styled-components in prod. Does it show?)