Skip to content

Fancy - v2.2.0

Choose a tag to compare

@ItsJonQ ItsJonQ released this 03 Dec 13:50
· 27 commits to master since this release

PureComponents, by default

This update adjusts the create-emotion-styled HOC to create
React.PureComponent styled components, by default. This is for an
overall performance boost, as PureComponent classes perform faster
than default Component classes.

This should be safe, as we've been using PureComponents exclusively,
at the library level, for a while now. Not to mention, React Redux
also defaults to PureComponents.

This behaviour can be customized by defining { pure: false } in a
new argument for create-emotion-styled.