Skip to content

Commit eb81fb4

Browse files
committed
docs: add cssobj link
1 parent 36ea7be commit eb81fb4

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# babel-plugin-transform-cssobj
2-
Babel plugin to transform css into cssobj (CSS in JS solution), map class names into cssobj localized names
2+
Babel plugin to transform css into [cssobj][] (CSS in JS solution), map class names into cssobj localized names
33

44
[![Join the chat at https://gitter.im/css-in-js/cssobj](https://badges.gitter.im/css-in-js/cssobj.svg)](https://gitter.im/css-in-js/cssobj)
55
[![Build Status](https://travis-ci.org/cssobj/babel-plugin-transform-cssobj.svg?branch=master)](https://travis-ci.org/cssobj/babel-plugin-transform-cssobj)
@@ -94,7 +94,7 @@ Babel plugin to transform css into cssobj (CSS in JS solution), map class names
9494
<a class={result.mapClass('!news item active')}>link text</a></div></div>;
9595
```
9696

97-
**Note**: According to **cssobj** `mapClass` rule, the `!news` will become `news` and not localized (aka keep AS IS).
97+
**Note**: According to [cssobj][] `mapClass` rule, the `!news` will become `news` and not localized (aka keep AS IS).
9898

9999
## More Usage
100100

@@ -126,7 +126,7 @@ You have two way to escape the transform
126126
}
127127
```
128128
129-
Then you can use `makeLocal` instead of `mapClass`, as a alias property of cssobj result
129+
Then you can use `makeLocal` instead of `mapClass`, as a alias property of [cssobj][] result
130130
131131
**Notice**: `makeLocal` **must not exists** in result object to avoid conflict
132132
@@ -141,7 +141,7 @@ You have two way to escape the transform
141141
142142
## More about mapName
143143
144-
If you discard the cssobj result part, then the `mapName` is not alias, it's a real function
144+
If you discard the [cssobj][] result part, then the `mapName` is not alias, it's a real function
145145
146146
**Notice**: `makeLocal` **must exists** in your scope, it will be kept as real function
147147
@@ -175,4 +175,6 @@ You have two way to escape the transform
175175
## TODO
176176
177177
- [ ] Support JSX Spread
178-
- [x] Child element should regard to parent cssobj scope
178+
- [x] Child element should regard to parent [cssobj][] scope
179+
180+
[cssobj]: https://github.com/cssobj/cssobj

0 commit comments

Comments
 (0)