react-styled-flexboxgrid
react-styled-flexboxgrid copied to clipboard
Error in emotion
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}`
Anyone interested on a full Emotion 10.x support this is a solution: https://www.npmjs.com/package/@samuelcastro/react-styled-flexboxgrid