You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,9 @@
5
5
6
6
## Usage
7
7
8
-
First you need to setup [webpack](http://webpack.github.io/docs/) to load your css files using "css" loader and enable CSS modules. You will also need to use `extract-text-webpack-plugin` to construct the CSS file. Refer to [webpack-demo](https://github.com/css-modules/webpack-demo).
8
+
First you need to setup [webpack](http://webpack.github.io/docs/) to load your css files using "css" loader and enable CSS modules. You will also need to use `extract-text-webpack-plugin` to aggregate the CSS into a single file. Refer to [webpack-demo](https://github.com/css-modules/webpack-demo).
9
9
10
-
Then you need use the higher order component declaration pattern to encapsulate your component:
10
+
Then you need use the higher order component declaration pattern to "decorate" your component, e.g.
CSSModules component will look for CSS classes in `./car.css` that match `ReactElement``className` and will extend the `className` declaration at the time of `render`.
31
+
CSSModules extends `Car``render` method. It will look for CSS classes in `./car.css` that match `ReactElement``className` and will append the matching unique class names to `className` declaration.
0 commit comments