I used css modules in my react app and here is my code:
import styles from './PlayerCard.module.css';
import PlayerPhoto from '../../images/players/Farahani.png';
export default function PlayerCard() {
return (
<div className={styles.PlayerCard}>
<img className={styles.PlayerPhoto} src={PlayerPhoto} alt="Player" />
<p className={styles.PlayerName}>Farahani</p>
<div className={styles.SkillBox}>
<div className={styles.SkillName}>
<p>Defence:</p>
How can I get rid of those styles keywords? is there any way like destructuring or something?