2021年3月17日星期三

Adding two kebab case css class in an element in react

import React from 'react';  import styles from './stylesheet.moudle.css'    <div className={styles['first-style'] styles['second-style']}>  some content  </div>  

How do I add styles['second-style'] into the className? I tried comma and it does not work.

https://stackoverflow.com/questions/66683397/adding-two-kebab-case-css-class-in-an-element-in-react March 18, 2021 at 09:04AM

没有评论:

发表评论