-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
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
Labels
No labels