Skip to content

Commit aa0800a

Browse files
committed
Add note about CSS Modules in CSSTransition docs
1 parent 0d9845f commit aa0800a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/CSSTransition.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,19 @@ const propTypes = {
3434
* }}
3535
* ```
3636
*
37+
* If you want to set these classes using CSS Modules:
38+
*
39+
* ```js
40+
* import styles from './styles.css';
41+
* ```
42+
*
43+
* you might want to use camelCase in your CSS file, that way could simply spread
44+
* them instead of listing them one by one:
45+
*
46+
* ```js
47+
* classNames={{ ...styles }}
48+
* ```
49+
*
3750
* @type {string | {
3851
* appear?: string,
3952
* appearActive?: string,

0 commit comments

Comments
 (0)