Styled component conditional rendering with interpolation is not applied

前端 未结 0 733
醉酒成梦
醉酒成梦 2020-12-17 16:13

I have the following styled component for the selected item.

${(props) =>
  props.selected &&
  css`
  background-color: ${(props) =&g         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题