styled-components

styled-components  - 组件样式化


Installation

npm install --save styled-components

example:

常规写法: