Skip to content

Commit 03ad027

Browse files
committed
Docs
1 parent 987ea4d commit 03ad027

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
## Usage
77

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).
99

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.
1111

1212
```js
1313
import React from 'react';
@@ -28,4 +28,4 @@ export default CSSModules(Car, styles);
2828

2929
Thats it!
3030

31-
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

Comments
 (0)