Loosing component props when using 'as' styled-components prop on component

后端 未结 0 1093
被撕碎了的回忆
被撕碎了的回忆 2021-02-07 00:44

I wrote a CallToAction component like so:

const CallToAction = ({ text = "Default text" }) => (
  {text}

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