Skip to content

Commit 5bff24e

Browse files
committed
ES7 decorator example.
1 parent 7721ebf commit 5bff24e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,12 @@ Options are supplied as the third parameter to the `CSSModules` function.
185185
CSSModules(Component, styles, options);
186186
```
187187

188+
or as a second parameter when using `CSSModules` as a decorator:
189+
190+
```js
191+
@CSSModules(styles, options);
192+
```
193+
188194
#### `allowMultiple`
189195

190196
Allows multiple CSS class names. Default: `true`.
@@ -197,7 +203,7 @@ When `false`, the following will cause an error:
197203

198204
#### `keepOriginal`
199205

200-
Keeps original CSS class name in addition to names of the CSS Modules. Default: `true`.
206+
Keeps original CSS class name in addition to the names of the CSS Modules. Default: `true`.
201207

202208
When `true`, the following `ReactElement`:
203209

0 commit comments

Comments
 (0)