-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
css-in-js: emotion / jss #152
Comments
|
|
format对于 emotion 而言 // ✅ prettier can format this
const cls = css`
text-align: center;
`
// ❌ prettier can NOT format this
const cls = styled`
text-align: center;
`
// ✅ prettier can format this
const cls = styled.xxx`
text-align: center;
` |
同时使用
|
why
之前用过 jss / styled-components, 体验都一般, 依旧坚持 css modules.
css modules 重构的时候比较麻烦:
.module.less
? 还是依旧使用原来的样式文件The text was updated successfully, but these errors were encountered: