We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import styles from './home.less';
// 有效果 <h2 className={"header"}>Home</h2>
<h2 className={"header"}>Home</h2>
// 没有效果 <h2 className={styles.header}>Home</h2>
<h2 className={styles.header}>Home</h2>
// home.less .header { padding: 0 12px; color: #666666; cursor: move; }
The text was updated successfully, but these errors were encountered:
I'm noticing the same. Not sure if this is the new way of styling.
Sorry, something went wrong.
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
you need css module 。
No branches or pull requests
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;
}
The text was updated successfully, but these errors were encountered: