选择器也可以继承其他CSS文件里面的规则。
another.css
.className { background-color: blue; }
App.css可以继承another.css里面的规则。
App.css
.title { composes: className from "./another.css"; color: red; }
运行这个示例。
$ npm run demo05
打开http://localhost:8080,会看到蓝色的背景上有一个红色的h1。
http://localhost:8080
h1