using css moudules, I encountered the problem of requiring multiple css classes
as follows
<div className={this.state.showall?...[style.TopBannerBox,style.actAll]:style.TopBannerBox}>
can"t you use it this way? This makes the report wrong.
the following
was used earlierstyle.TopBannerBox + " " + style.actAll
this approach is not good for the neatness of the code and looks uncomfortable.
figured it out, you can"t use the extension operator. The extension operator compiles style.TopBannerBox,style.actAll, so it will report an error, but when console.log () comes out, it will automatically separate", "into multiple values, which looks like style.TopBannerBox style.actAll. If you are not good at learning, you will not be good at learning!