I could reproduced on styled-components v3.2.5 and 3.2.3 and react-scripts 1.1.0 and 1.1.1.
https://codesandbox.io/s/n3v5mnqjj4
You can inspect the red title or the div container.
It should only have one css class specifying the given css.
It creates a second empty css class for each styled component.
@sylvhama no need to worry about this, it's expected.
styled-components actually generates a minimum of two classes per element: a stable class to represent the element itself (used for component selectors mostly), and one or more classes used to represent particular rulesets. Dynamic styles will cause more than one additional class to be created.
Most helpful comment
@sylvhama no need to worry about this, it's expected.
styled-components actually generates a minimum of two classes per element: a stable class to represent the element itself (used for component selectors mostly), and one or more classes used to represent particular rulesets. Dynamic styles will cause more than one additional class to be created.