forked from velopert/learning-react
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCSSModule.js
More file actions
34 lines (29 loc) · 888 Bytes
/
CSSModule.js
File metadata and controls
34 lines (29 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import classNames from 'classnames/bind';
// import styles from './CSSModule.module.css';
import styles from './CSSModule.module.scss';
const cx = classNames.bind(styles);
const CSSModele = () => {
console.log(styles);
return (
<div className={cx('wrapper', 'inverted')}>
안녕하세요, 저는 <span className="something">CSS Module!</span>
</div>
);
};
// const CSSModele = () => {
// console.log(styles)
// return (
// <div className={[styles.wrapper, styles.inverted].join(' ')}>
// 안녕하세요, 저는 <span className="something">CSS Module!</span>
// </div>
// )
// }
// const CSSModele = () => {
// console.log(styles)
// return (
// <div className={`${styles.wrapper} ${styles.inverted}`}>
// 안녕하세요, 저는 <span className="something">CSS Module!</span>
// </div>
// )
// }
export default CSSModele;