-
-
Notifications
You must be signed in to change notification settings - Fork 470
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
977bb71
commit 7ec1120
Showing
7 changed files
with
213 additions
and
102 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import './css-modules.css'; | ||
|
||
const node1 = document.createElement("DIV"); | ||
const textNode1 = document.createTextNode("Water"); | ||
|
||
node1.appendChild(textNode1); | ||
|
||
document.body.appendChild(node1); | ||
|
||
const node2 = document.createElement("DIV"); | ||
const textNode2 = document.createTextNode("Ground"); | ||
|
||
node2.appendChild(textNode2); | ||
|
||
document.body.appendChild(node2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
import styles from './css-modules.css'; | ||
import styles, { myClassName, myComposingClass } from './css-modules.css'; | ||
|
||
styles.use(); | ||
|
||
const node1 = document.createElement("DIV"); | ||
const textNode1 = document.createTextNode("Water"); | ||
|
||
node1.appendChild(textNode1); | ||
node1.className = styles.locals.myClassName; | ||
node1.className = myClassName; | ||
|
||
document.body.appendChild(node1); | ||
|
||
const node2 = document.createElement("DIV"); | ||
const textNode2 = document.createTextNode("Ground"); | ||
|
||
node2.appendChild(textNode2); | ||
node2.className = styles.locals.myComposingClass; | ||
node2.className = myComposingClass; | ||
|
||
document.body.appendChild(node2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters