๐ react์์ ๊ฐ๊ฐ์ ์ปดํฌ๋ํธ๋ค ์์ className์ด ๋์ผํ๊ณ , css style ํ์ผ์ด ์ชผ๊ฐ์ ธ ์๋ ๊ฒฝ์ฐ,
๋งจ ๋ง์ง๋ง์ import ๋ style๋ก ๋ฎ์ฌ์์์ง๋ค.
์ด๋ ํ์ํ ๊ฒ์ด Post CSS!!
<aside> ๐ก
css ํ์ผ์ module ์ ์ถ๊ฐ
ex) Button.css โ Button.module.css
import ํ๋ ํ์ผ์์ ๊ฐ์ฒด ์ด๋ฆ ๋ง๋ค์ด์ ๋ถ๋ฌ์ค๊ธฐ
ex) import styles from โ./Button.module.cssโ
className์์ โ โ์คํธ๋ง ๋ฌธ์์ด์ด ์๋ ๊ฐ์ฒด๋ก ๋ถ๋ฌ์ค๊ธฐ
ex) className=โbuttonโ โ className={styles.button}
</aside>
๐ className ์ฌ๋ฌ๊ฐ ์ฐ๊ณ ์ถ์ ๋,
<div className={styles.title} />
.
.
.
<div **className={`${styles.title} ${styles.main_title}`}** />