Skip to content

Commit 66af0e4

Browse files
committed
docs: document support for multiple style names (fixes #32)
1 parent eabee89 commit 66af0e4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ In contrast to [`react-css-modules`](https://github.com/gajus/react-css-modules)
2929
* [Runtime `styleName` resolution](#runtime-stylename-resolution)
3030
* [Limitations](#limitations)
3131
* [Have a question or want to suggest an improvement?](#have-a-question-or-want-to-suggest-an-improvement)
32+
* [FAQ](#faq)
33+
* [How to refer to multiple modules?](#how-to-refer-to-multiple-modules)
3234

3335
## CSS Modules
3436

@@ -344,3 +346,15 @@ const _styleModuleImportMap = {
344346
* Have a technical questions? [Ask on Stack Overflow.](http://stackoverflow.com/questions/ask?tags=babel-plugin-react-css-modules)
345347
* Have a feature suggestion or want to report an issue? [Raise an issues.](https://github.com/gajus/babel-plugin-react-css-modules/issues)
346348
* Want to say hello to other `babel-plugin-react-css-modules` users? [Chat on Gitter.](https://gitter.im/babel-plugin-react-css-modules)
349+
350+
## FAQ
351+
352+
### How to refer to multiple modules?
353+
354+
`react-css-modules` had an option [`allowMultiple`](https://github.com/gajus/react-css-modules#allowmultiple). `allowMultiple` allows multiple CSS module names in a `styleName` declaration, e.g.
355+
356+
```js
357+
<div styleName='foo bar' />
358+
```
359+
360+
This behaviour is enabled by default in `babel-plugin-react-css-modules`.

0 commit comments

Comments
 (0)