Skip to content

Commit 5f54600

Browse files
committed
Docs.
1 parent 50f7bd5 commit 5f54600

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ Seamless mapping of class names to CSS modules inside of React components.
77

88
- [What's the Problem?](#whats-the-problem)
99
- [Usage](#usage)
10-
- [webpack](#webpack)
11-
- [Browserify](#browserify)
12-
- [react-css-modules](#react-css-modules)
10+
- [Module Bundler](#module-bundler)
11+
- [webpack](#webpack)
12+
- [Browserify](#browserify)
13+
- [Decorator](#decorator)
1314
- [Options](#options)
1415
- [`allowMultiple`](#allowmultiple)
1516
- [`keepOriginal`](#keeporiginal)
@@ -86,9 +87,11 @@ Refer to the [react-css-modules-examples](https://github.com/gajus/react-css-mod
8687
Setup consists of:
8788

8889
* Setting up a module bundler to load your [ICSS](https://github.com/css-modules/icss).
89-
* Decorating your component using [`react-css-modules`](#react-css-modules).
90+
* [Decorating](#decorator) your component using `react-css-modules`.
9091

91-
### webpack
92+
### Module Bundler
93+
94+
#### webpack
9295

9396
* Install [`style-loader`](https://www.npmjs.com/package/style-loader) and [`css-loader`](https://www.npmjs.com/package/css-loader).
9497
* You will also need to use [`extract-text-webpack-plugin`](https://www.npmjs.com/package/extract-text-webpack-plugin) to aggregate the CSS into a single file.
@@ -111,11 +114,11 @@ new ExtractTextPlugin('app.css', {
111114

112115
Refer to [webpack-demo](https://github.com/css-modules/webpack-demo) or [react-css-modules-examples](https://github.com/gajus/react-css-modules-examples) for a complete setup.
113116

114-
### Browserify
117+
#### Browserify
115118

116119
Refer to [`css-modulesify`](https://github.com/css-modules/css-modulesify).
117120

118-
### `react-css-modules`
121+
### Decorator
119122

120123
```js
121124
/**

0 commit comments

Comments
 (0)