File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ In contrast to [`react-css-modules`](https://github.com/gajus/react-css-modules)
15
15
* [ Performance] ( #performance )
16
16
* [ How does it work?] ( #how-does-it-work )
17
17
* [ Conventions] ( #conventions )
18
+ * [ Anonymous reference] ( #anonymous-reference )
18
19
* [ Named reference] ( #named-reference )
19
20
* [ Configuration] ( #configuration )
20
21
* [ Example transpilations] ( #example-transpilations )
@@ -88,6 +89,21 @@ Missing a configuration? [Raise an issue](https://github.com/gajus/babel-plugin-
88
89
89
90
## Conventions
90
91
92
+ ### Anonymous reference
93
+
94
+ Anonymous reference can be used when there is only one stylesheet import.
95
+
96
+ Format: ` CSS module name ` .
97
+
98
+ Example:
99
+
100
+ ``` js
101
+ import ' ./foo1.css' ;
102
+
103
+ // Imports "a" CSS module from ./foo1.css.
104
+ < div styleName= " a" >< / div> ;
105
+ ```
106
+
91
107
### Named reference
92
108
93
109
Named reference is used to refer to a specific stylesheet import.
You can’t perform that action at this time.
0 commit comments