Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in emotion #161

Open
huchenme opened this issue Sep 21, 2018 · 1 comment
Open

Error in emotion #161

huchenme opened this issue Sep 21, 2018 · 1 comment

Comments

@huchenme
Copy link

huchenme commented Sep 21, 2018

  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}`
@samuelcastro
Copy link

Anyone interested on a full Emotion 10.x support this is a solution: https://www.npmjs.com/package/@samuelcastro/react-styled-flexboxgrid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants