在使用nextJs时给标签添加*.module.css形式的类名时似乎没法一次性引入多个类名
import style from './style.module.css'
.....
<div className={style.st1,style.st2}><div> // st1没有生效,st2生效了
<div className={style.st1,"comm-st"}><div> // comm-st是我在_app.js中引入的样式,st1没有生效,comm-st生效了
有什么办法可以一次引入多个类名吗?
也可以参考官方文档方案
https://zh-hans.reactjs.org/d...
使用classnames简化处理