将样式组件添加到Codepen

问题描述 投票:0回答:1

尝试在我的笔https://codepen.io/mxshrv/pen/aMXvQd中使用样式组件,但得到错误

Cannot use 'in' operator to search for 'default' in undefined

styled is not defined

如何为我的笔正确添加库?

styled-components codepen
1个回答
1
投票

尝试在这个笔中制作const styled = window.styledhttps://codepen.io/beauhaus/pen/OaRwbm

© www.soinside.com 2019 - 2024. All rights reserved.