Skip to content
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

引入less, className={"header"}有效果, className={styles.header}没有效果 #114

Open
scxslsh opened this issue Mar 5, 2020 · 3 comments

Comments

@scxslsh
Copy link

scxslsh commented Mar 5, 2020

import styles from './home.less';

// 有效果
<h2 className={"header"}>Home</h2>

// 没有效果
<h2 className={styles.header}>Home</h2>

// home.less
.header {
padding: 0 12px;
color: #666666;
cursor: move;
}

@sidkalluri
Copy link

I'm noticing the same. Not sure if this is the new way of styling.

@scxslsh
Copy link
Author

scxslsh commented Apr 17, 2020

I'm noticing the same. Not sure if this is the new way of styling.
I currently use sass because I don't want to use eject

@FlexibleHha
Copy link

you need css module 。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants