File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import styles from './buttons.css'
28
28
elem .innerHTML = ` <button class =" ${styles.continueButton}" >Continue</button >`
29
29
```
30
30
31
- ## Extensions
31
+ ## Composition
32
32
33
33
Since we're exporting class names, there's no reason to export only one. This can give us some really useful reuse of styles:
34
34
@@ -64,15 +64,16 @@ becomes:
64
64
}
65
65
```
66
66
67
+ ** Note:** you can also use ` composes ` as a shorthand for ` compose-with `
68
+
67
69
## Local-by-default & reuse across files
68
70
69
- You're looking for [ CSS Modules] ( https://github.com/webpack /css-modules ) . It spans this plugin as well as a few others, and it's amazing.
71
+ You're looking for [ CSS Modules] ( https://github.com/css-modules /css-modules ) . It uses this plugin as well as a few others, and it's amazing.
70
72
71
73
## Building
72
74
73
75
```
74
76
npm install
75
- npm build
76
77
npm test
77
78
```
78
79
@@ -83,7 +84,7 @@ npm test
83
84
84
85
## Development
85
86
86
- - ` npm autotest ` will watch ` src ` and ` test ` for changes and run the tests
87
+ - ` npm autotest ` will watch ` src ` and ` test ` for changes and run the tests, and transpile the ES6 to ES5 on success
87
88
88
89
## License
89
90
You can’t perform that action at this time.
0 commit comments