浅析 styled-components
使用 ES6 的字符串模板
class HelloCustomElement extends HTMLElement {}
customElements.define("hello-custom-element", HelloCustomElement);<hello-custom-ele>
<h1>Original H1</h1>
</hello-custom-ele>class HelloCustomElement extends HTMLElement {
constructor() {
super();
debugger;
}
}CSS in JS
Props
CSS 代码片段
styled-components 用法
styled-components 有如下优点
使用技巧
最后更新于