Skip to content

Error in emotion #161

@huchenme

Description

@huchenme
  console.error ../../node_modules/create-emotion/dist/index.cjs.js:297
    Interpolating functions in css calls is deprecated and will be removed in the next major version of Emotion.
    If you want to have a css call based on props, create a function that returns a css call like this
    let dynamicStyle = (props) => css`color: ${props.color}`
    It can be called directly with props or interpolated in a styled call like this
    let SomeComponent = styled('div')`${dynamicStyle}`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions