v4.0.0-beta.11
Pre-release
Pre-release
Blog post ・ Migration instructions
npm install --save styled-components@beta
-
Add warning when component is not a styled component and cannot be referred via component selector, by @egdbear (see #2070)
-
Fix how ampersand is handled in self-referential selector combinations, e.g.
& + &(see #2071) -
Add babel macro for full-featured interop with create react app v2+, by @lucleray (see #2032)
When using CRA v2, import styled components from
styled-components/macroinstead to gain all the benefits of our babel plugin. -
Add a warning when wrapping a React component with
styled()and theclassNameisn't used (meaning styling isn't applied), by @Fer0x (see #2073)