質問するログイン新規登録

質問編集履歴

2

修正

2019/03/07 07:40

投稿

ppphysiccc
ppphysiccc

スコア20

title CHANGED
File without changes
body CHANGED
@@ -23,6 +23,9 @@
23
23
  ```
24
24
  上記の2ファイルがあり、どちらも中に.test-contentsクラスがあるとします。
25
25
  .allクラスは全体で使用したいので共通としてindex.jsで読み込みます。
26
+ ```js
27
+ import './css/common.css';
28
+ ```
26
29
 
27
30
  TESTコンポーネントでcommon2.cssの.contentsを使用したいとします。
28
31
  ```jsx

1

誤字修正

2019/03/07 07:40

投稿

ppphysiccc
ppphysiccc

スコア20

title CHANGED
File without changes
body CHANGED
@@ -21,7 +21,7 @@
21
21
    中身2;
22
22
  }
23
23
  ```
24
- 上記の2ファイルがあり、どちらも中に.contentsクラスがあるとします。
24
+ 上記の2ファイルがあり、どちらも中に.test-contentsクラスがあるとします。
25
25
  .allクラスは全体で使用したいので共通としてindex.jsで読み込みます。
26
26
 
27
27
  TESTコンポーネントでcommon2.cssの.contentsを使用したいとします。