Create the styled API with emotion for React-like libraries
create-emotion-styledallows you to use the
styledAPI with instances of emotion. This is only needed if you use a custom instance of emotion from
create-emotionand you want to use the
create-emotion-styledaccepts an instance of emotion from
create-emotionand a React-like view library.
import React from 'react' import * as emotion from 'my-emotion-instance' import createEmotionStyled from 'create-emotion-styled' export default createEmotionStyled(emotion, React) // Exporting emotion isn't required but generally recommended export * from 'my-emotion-instance'