babel plugin styled name:开发中的样式化组件的名称 源码

qqdisabled18838 15 0 ZIP 2021-02-01 22:02:45

babel插件样式名称 添加displayName和componentId的风格组件。 安装 $ npm install babel-plugin-styled-name --save-dev 例 提高devTools的可读性 ↓ 怎么样? const Button = styled . button ` color: red; ` ↓ const Button = styled . button . withConfig ( { displayName : 'Button' , componentId : 'Button' } ) ` color: red; ` 用法 仅用于

用户评论
请输入评论内容
评分:
暂无评论