1. 安装 styled-components ===>>> npm i styled-components
2.使用
设置全局样式===>>>
修改文件名 全局样式 运行效果3.组件书写 ===>>>
HeaderWrapper组件 引用 效果官方文档:https://www.styled-components.com/
1. 安装 styled-components ===>>> npm i styled-components
2.使用
设置全局样式===>>>
修改文件名 全局样式 运行效果3.组件书写 ===>>>
HeaderWrapper组件 引用 效果官方文档:https://www.styled-components.com/
本文标题:2.使用styled-components 管理样式文件
本文链接:https://www.haomeiwen.com/subject/qgauoftx.html
网友评论