Create distinct instances of emotion.
The main emotion package can be thought of as a call to
createEmotion with sensible defaults for most applications.
Calling it directly will allow for some low level customization.
Create custom names for emotion APIs to help with migration from other, similar libraries.
Could set custom
keyto something other than
Introduces some amount of complexity to your application that can vary depending on developer experience.
Required to keep up with changes in the repo and API at a lower level than if using
Primary use cases
Using emotion in embedded contexts such as an
Setting a nonce on any
<style/>tag emotion creates for security purposes
Use emotion with a developer defined
Using emotion with custom stylis plugins
Multiple instances in a single app example
import createEmotion from 'create-emotion'constflushhydratecxmergegetRegisteredStylesinjectGlobalkeyframescsssheetcache} =
createEmotion accepts the same options as createCache from