File tree Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,8 @@ exports.addon = function (renderer, id) {
21
21
22
22
var cssRules = stylesheet . cssRules ;
23
23
24
- for ( var i = 0 ; i < cssRules . length ; i ++ ) {
25
- var rule = cssRules [ i ] ;
26
- hydrated [ rule . selectorText ] = 1 ;
27
- }
24
+ for ( var i = 0 ; i < cssRules . length ; i ++ )
25
+ hydrated [ cssRules [ i ] . selectorText ] = 1 ;
28
26
29
27
var put = renderer . put ;
30
28
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ html += `<style id="nano-css">${nano.raw}</style>`;
7
7
```
8
8
9
9
That's it! ` hydrate ` addon will find this stylesheet in the browser and will not emit CSS
10
- rules that are already there .
10
+ rules that were already generated by the server .
11
11
12
12
13
13
## Installation
Original file line number Diff line number Diff line change @@ -33,8 +33,6 @@ and semantic reasons.
33
33
const className = rule (css, ' RedText' );
34
34
```
35
35
36
- ---
37
-
38
36
> __ P.S.__
39
37
>
40
38
> If you specify all style names explicitly, you don't need to install ` stable ` addon.
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ const Button = style(ButtonWhitelist, {
90
90
// ...
91
91
});
92
92
93
- < Button title = " Click it!" onClick = {}> Click me ! < / Button >
93
+ < Button primary small title = " Click it!" onClick = {}> Click me ! < / Button >
94
94
` ` `
95
95
96
96
@@ -106,7 +106,7 @@ const Button = style(ButtonBlacklist, {
106
106
// ...
107
107
});
108
108
109
- < Button title = " Click it!" onClick = {}> Click me ! < / Button >
109
+ < Button primary small title = " Click it!" onClick = {}> Click me ! < / Button >
110
110
` ` `
111
111
112
112
You can’t perform that action at this time.
0 commit comments