react-styled-flexboxgrid icon indicating copy to clipboard operation
react-styled-flexboxgrid copied to clipboard

Error in emotion

Open huchenme opened this issue 5 years ago • 1 comments

  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}`

huchenme avatar Sep 21 '18 08:09 huchenme

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

samuelcastro avatar Jun 09 '20 00:06 samuelcastro