File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 13
13
## Motivation
14
14
15
15
Styling components is a critical point when we decide to develop in React.
16
- There are a lot of ways in which we can do this but all of these have pro and cons.
16
+ There are a lot of ways in which we can do this but all of these have pros and cons.
17
17
In some situations this means having a strong connection with the source code, that is not so good.
18
18
With ReactCSSOM we have tried to develop a system that allows us to separate ` js ` and ` css ` .
19
19
@@ -25,7 +25,7 @@ Using ReactCSSOM means:
25
25
- No limitations to CSS power
26
26
- Easy to use with CSS Preprocessors (no more stuff needed)
27
27
- Highly expressive
28
- - Lightweight, only 100 lines of js
28
+ - Lightweight, only 88 lines of js
29
29
30
30
## Installation
31
31
@@ -127,9 +127,7 @@ export default class Button extends React.Component {
127
127
}
128
128
` }
129
129
< / style>
130
- < button
131
- className= {this .props .primary ? styles .primary : styles .default }
132
- >
130
+ < button>
133
131
Click me
134
132
< / button>
135
133
< / div>
You can’t perform that action at this time.
0 commit comments